Skip to content

Commit 3546015

Browse files
committed
added print and variables
1 parent df9d05f commit 3546015

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
11
# JavaScript
22

3-
A Cheatsheet for JavaScript Library
3+
## Table of Contents
4+
5+
## Main
6+
7+
## Print
8+
9+
One of the basic functions which we need to know is the print of the language, which helps us in many ways to debug the code and to know the output of the code.
10+
11+
```javascript
12+
console.log("Hello World");
13+
```
14+
15+
## Variables
16+
17+
Like any other programming language, JS also has variables, by the variables in JS we can store any type of data in it, and we can use it later in the code. These are loosely typed variables, which means that you don't have to specify the data type of the variable.
18+
19+
```javascript
20+
const integer = 10; // Integer variable
21+
const string = "Hello World"; // String variable
22+
const float = 10.5; // Float variable
23+
const boolean = true; // Boolean variable
24+
```

0 commit comments

Comments
 (0)