Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript variable

var myString = "string"; //var can be redefined
var myInt = 34; //var can be redefined
const myString2 = "string"; //const cannot be redefined
const myInt2 = 69; //const cannot be redefined
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #variable
ADD COMMENT
Topic
Name
5+7 =