Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js var vs let

let = 10 // accessable only in defined scope
var = 10 // accessable in the function it is declared in (global variable in a function)
  
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #js #var
ADD COMMENT
Topic
Name
6+1 =