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