JavaScript Questions IMP

Lexical scoping defines the scope of a variable by the position of that variable declared in the source code.
let name = 'John';
function greeting() {
let message = 'Hi';
console.log(message + ' '+ name); }

    JavaScript Topics ToDo

  • Variable Scope
  • Map Reduce Filter

miscellaneous content