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)
  
 
PREVIOUS NEXT
Tagged: #js #var
ADD COMMENT
Topic
Name
3+6 =