An interesting question of variable hoisting
var text = ‘outside’; function logIt (){ console.log(text); var text = ‘inside’; }; logIt(); If
Web Developer | Photography | Graphic Design | Digital artwork | Photo editing
var text = ‘outside’; function logIt (){ console.log(text); var text = ‘inside’; }; logIt(); If