Variables in JavaScript

 console.log("This repl contains code for the ultimate javascript course")

let a = 67  //a contains 67, a is identifier, declaring variable, = is assignment operator
//Above 67 is literal means "A constant value", we can also use string literal
console.log(a)
a = "Harry"
console.log(a)

OUTPUT:

This repl contains code for the ultimate javascript course 67 Harry

Comments

Popular posts from this blog

Generators tutorial in Advance JavaScript

Document Object Module DOM querySelector and querySelectorAll tutorial in JavaScript

Find Even and Odd Numbers with Loops tutorial in JavaScript