8000 21-12-22 · sugaliudaykiran/03.-JavaScript@ae8bf77 · GitHub
[go: up one dir, main page]

Skip to content

Commit ae8bf77

Browse files
21-12-22
1 parent e78d7ae commit ae8bf77

File tree

1 file changed

+24
-1
lines changed
  • JS-C1/01-Fundamentals-Part-1/starter_

1 file changed

+24
-1
lines changed

JS-C1/01-Fundamentals-Part-1/starter_/script.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ console.log(js);
3333
3434
*/
3535

36+
/*
3637
let javascriptIsFun = true;
3738
3839
console.log(javascriptIsFun);
@@ -49,7 +50,29 @@ year = 1899;
4950
console.log(typeof year);
5051
5152
52-
console.log(typeof null); // Object
53+
console.log(typeof null); // Object
54+
55+
*/
56+
57+
// "let, const" are available in new version ES6.
58+
let age = 22;
59+
age = 23; // Reassign the variable Mutable Variable.
60+
age = 24;
61+
62+
63+
const birthYear = 2000; // In-Mutable variable.
64+
// const job; Error..
65+
66+
var job = "programmer";
67+
job = "teacher";
68+
job = "youTuber";
69+
70+
71+
lastName = "Sugali";
72+
console.log(lastName);
73+
74+
75+
5376

5477

5578

0 commit comments

Comments
 (0)
0