Variable creation let keyword: =============================== let ==> keyword using this we can create a variable. Syntax: let identifier = value; Properties: ============ 1) Default value for the variable with let ==> Undefined 2) We can able to assign the let variable after the declaration and we can also modify this. 3) Hoisting is not applicable to let that means, we can't access the let variable before the definition. 4) We can allowed to define the let variable inside the block and we can access it within the block but we can't be access in outside that block. let a; // declaration of variable using let console.log(a); a = 10; console.log(a); a = 11; console.log(a); // console.log(b); let b = 12; { let c = 12; let d = 24; let e = c+d; console.log(e); } console.log(e); =================================== Variable with const keyword: ============================ const ==> keyword used to define the constant variables (variables with fixed values) Syntax: const identifier = value; Properties: =========== 1) Constant variables cannot be accessed without the declaration. 2) Like let variable, constant variable also cannot be accessed before the definition. 3) The modification of constant variable is not possible after the definition. 4) Constant variable is block variable/local variable we can't access in outside of the defined block. ======================================================= Comments in JavaScript: ======================= ==> Program space can divide into two parts: 1) Executable part ==> Will run and gives an output 2) Non-Executable Part ==> will just for reading ==> Comments can use for the documentation ==> can improve the readability. ==> Two ways: 1) Single line comments ==> // 2) Multi Line Comments ==> /* */ // WAP TO FIND THE AREA OF THE CIRCLE. /* Taking three variables of any type implement the logic for finding the big among three: by doing the comparison */ var a = 12; let b = 13; const c = 14; // comparing a with b and c if(a > b && a > c) { console.log("a is bigger."); } // if 'a' is not bigger, we can compare b with c. else if(b > c) { console.log("b is bigger."); } // if b also not bigger, then the last one is bigger. else { console.log("c is bigger."); } ==================================================== Operators: ========== Operand ==> a value, on which we can denote an operation Operator ==> A symbol which we can use to specify the operation Expression ==> combination of operator and operands. Statement ==> an instruction/line of code always terminate with semi-colon. a + b = c; console.log("Hi"); ==> Operators are classified into three types: Unary Operators ==> always be defined with one operand only. Binary Operators ==> always be defined with two operands. Ternary Operators ==> always be defined with three values/more than two values. 10 is negative ==> -10 1) Arithmetic Operators 2) Assignment Operators 3) Compound Operators 4) Logical Operators 5) Relational Operators 6) Bitwise Operators 7) Special Operators 8) Conditional Operators