Knowledge check: Introduction to Functional Programming in Javascript
What will print out when the following code runs?
var globalVar = 77;
function scopeTest() {
var localVar = 88;
}
console.log(localVar);
77
88
null
ReferenceError: localVar is not defined
Variables declared using const can be reass...
eplus.dev1 min read