JavaScript L-3
Jan 29, 2023 · 2 min read · Block Scope. "let" and "const" are BLOCK scoped. "var" is FUNCTION scope. { let firstName="ABC"; console.log(firstName); } //here let can only be inside that block //if i write print statement outside block and not inside block then it will no...
Join discussion