Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

block scoped in js

The area of the code which is within {curley brackets} is called a block
if (true) {  ///block start 
  var x = 2;
  let y = 2;
}  // block end
 
PREVIOUS NEXT
Tagged: #block #scoped #js
ADD COMMENT
Topic
Name
5+3 =