Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

var vs let js

let: //only available inside the scope it's declared, like in "for" loop, 
var: //accessed outside the loop "for"
 
PREVIOUS NEXT
Tagged: #var #js
ADD COMMENT
Topic
Name
4+5 =