PowerPoint Presentation

1 of
Published on Video
Go to video
Download PDF version
Download PDF version
Embed video
Share video
Ask about this video

Page 1 (0s)

[image] Learn JavaScript Tutorial javatpoint. JavaScript.

Page 2 (11s)

[Audio] Javascript Values. Click Me!. The JavaScript syntax defines two types of values:.

Page 3 (26s)

[Audio] Javascript Variables. Click Me!. Declaring a JavaScript Variable.

Page 4 (51s)

[Audio] Declaring a Javascript Variable. Click Me!.

Page 5 (1m 12s)

[Audio] Declaring a Javascript Variable. Click Me!.

Page 6 (1m 22s)

[Audio] 1. Automatically Declared when first used.

Page 7 (1m 33s)

[Audio] 2. Using var to declare variable. Output.

Page 8 (1m 41s)

[Audio] 3. Using let to declare variable. Output.

Page 9 (1m 49s)

[Audio] 4. Using const to declare variable. Output.

Page 10 (1m 58s)

[Audio] Reassigning variable value. Click Me!. [image] var Allowed Reassign Value let Allowed const Not Allowed.

Page 11 (2m 5s)

[Audio] Re-Declaring Javascript Variables. Click Me!.

Page 12 (2m 24s)

[Audio] Variable Scope. Click Me!. Scope determines the accessibility of variables, objects, and functions from different parts of the code..

Page 13 (2m 36s)

[Audio] Block Scope. A block in JavaScript involves opening and closing curly braces:.

Page 14 (2m 54s)

[Audio] Local Scope // code here can NOT use carName function myFunction() // code here can NOT use carName.

Page 15 (3m 9s)

[Audio] Function Scope function myFunction(). Click Me!.

Page 16 (3m 21s)

[Audio] Global Scope var applicantName = "John"; // Global scope let job = "Manager"; // Global Scope const birthday= "20-12-2023"; // Global scope // code here can use applicantName,job and birthday. function jobSearch().

Page 17 (3m 49s)

[Audio] Variable Hoisting. It is JavaScript's default behavior of moving declarations to the top..

Page 18 (3m 58s)

[Audio] Javascript Hoisting (var) <!DOCTYPE html> jobName = "Manager"; document.getElementById("msg").innerHTML = jobName; var jobName;.

Page 19 (4m 31s)

let and const variables, on the other hand, are hoisted, without a default initialization. This makes them inaccessible..

Page 20 (4m 47s)

With const, you cannot use a variable before it is declared. In this example, there will not be any output.

Page 21 (4m 59s)

[Audio] 'var' vs 'let' vs 'const'. KEYWORD SCOPE REDECLARATION & REASSIGNMENT HOISTING var Global, Local yes & yes yes, with default value let Global, Local, Block no & yes yes, without default value const Global, Local, Block no & no yes, without default value.