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 htmlcheatsheet.com #
 
PREVIOUS NEXT
Tagged: #javascript #var #variable
ADD COMMENT
Topic
Name
3+7 =