// Extensions
JavaScript (ES6) code snippets Quokka.js Turbo Console Log
IIFE (Immediately Invoked Function Expression)
// using let you cant redeclaere variable name; // let will handle scoping automatically
redecalare reasign scoping
let X yes yes const X no yes var yes yes no
// let a = 1; // // redeclare // let a = 2
// let a = 1; // // assign new value // a = 2;
// console.log(a)
// const a = 1; // // // redeclare // const a = 2;
const a = 1; //reasing not possible a = 2