how to store variable in javascript 1

how to store variable in javascript

var example1 = "hello this is string variable" ; //this is string variable
var example2 = 12345 ; //this is numeric variable
var example3 = true ; //boolean variable

Here is what the above code is Doing:
1. We are creating a variable called example1 and assigning it the value of “hello this is string variable”.
2. We are creating a variable called example2 and assigning it the value of 12345.
3. We are creating a variable called example3 and assigning it the value of true.

Similar Posts