-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirst.js
More file actions
77 lines (39 loc) · 1.04 KB
/
first.js
File metadata and controls
77 lines (39 loc) · 1.04 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
console.log("Hello World! \nhiii");
console.log("Hii");
console.log("hii", "Hello", "hey");
//keywords(var,let,const)
//var
var firstname; //declaration
console.log(firstname);
var firstname="Arun"; //assigement
console.log(firstname);
//let
// let firstname; //declaration
// console.log(firstname);
// let firstname="Arun"; //assigement
// console.log(firstname);
// let firstname="Arun"; //declaration and assigement
// var a;
// var a; //redeclaration allowed
// let a;
// let a; //redeclaration not allowed
//const
const a =2;
console.log(a); //declaration and assigement both are compuslary in single statement
//upating and redeclaration both are not allowed
var b = "abc";
c="c";
d=123;
e=true; //loosely typed language
var first$name="Arun";
let firstr_name="Arun";
const $first="Arun";
let first$="Arun" // start inbetween end are allowed
// let ab3;
// let a3b;
// let 3ab; // inbetween end are allowed start are not allowed
// industryConvention
//single line comment
/*multi
line
comment*/