GSGayeon Stegmaieringayeonstegmaier.hashnode.dev·Aug 30, 2023 · 4 min read[JavaScript] ECMAScript 6Scopes of the var and let Keywords var i = 'global scope' function checkScope() { let i = 'function scope'; console.log(i); // function scope if (true) { i = 'block scope'; console.log(i); // block scope } console.log(i); // block...00
GSGayeon Stegmaieringayeonstegmaier.hashnode.dev·Aug 22, 2023 · 11 min readBasic JavaScriptComment // In-line comment /* Multi-line comment */ Data types JavaScript provides eight different data types which are undefined, null, boolean, string, symbol, bigint, number, and object. Declare Variables var myName; We can declare a variable ...00