Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

variable hoisting

var a = 10;
{
    var a = -10;
}
let b = a;
{
    let b = -20;
}

console.log(b)
Source by www.interviewbit.com #
 
PREVIOUS NEXT
Tagged: #variable #hoisting
ADD COMMENT
Topic
Name
8+8 =