Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript var variable

var x = 10; //Function Scoped/Global Scoped Variable

function printVar() {
    console.log(x)
}

console.log(x)
printVar()
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #var #variable
ADD COMMENT
Topic
Name
6+8 =