-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDay-101.js
More file actions
44 lines (29 loc) · 1.13 KB
/
Copy pathDay-101.js
File metadata and controls
44 lines (29 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Let's revise all the basics of javascript.
/*
1. Functions
2. Objects
3. Arrays 2d and statis
4. Loops
5. Array Methods
6. String Methods
7. Date & Math Method
*/
// Topic #1 -- Keyword vs Word
/*
Any thing that has a particular meaning in JS language called Keyword i.e (if, else, else if, case, switch, break, etc).
Any thing that not has a particular meaning in js language called Word i.e (my_Name, my_Age, a, b, c etc).
*/
// Topic #2 -- Variable & Constants
/*
Variales are used to store data in your code and you use it for performing operations, You can change variable values and reintiallize
them as per requiremnts. There are two ways by which you can create variable in JS i.e (let, var)
Constants are also used to store data in your code but you never change or reinitalize their values. You can create constant which the help
of const keyword in JavaScript Language.
*/
// Topic #3 -- Undefined & Not defined.
//Lets understand this the help of an example.
console.log(a);
var a = "Muhammad Shakir";
//output is -- undefined
console.log(b);
//output is -- b is not defined