Test Your JavaScript Skills : ES8/ES7 (JavaScript 2017/16) - 46Introduction Namaste, In this blog I will discuss 12 code scenarios on Javascript . Identify the output of the below program let city = { "delhi":1000, }; let obj = Object.getOwnPropertyDescriptors(city); console.log(obj.delhi.configurable...Apr 18, 2024 · 2 min readmahavir.hashnode.dev
Test Your JavaScript Skills : ES8 (JavaScript 2017) - 45Introduction Namaste, In this blog I will discuss 10 code scenarios on Javascript . Identify the output of the below program function fx() { return new Promise(resolve => { setTimeout(() => { resolve('resolved'); }, 1000...Apr 18, 2024 · 3 min readmahavir.hashnode.dev
Test Your JavaScript Skills : ES10 (JavaScript 2019) - 45Introduction Namaste, In this blog I will discuss 10 code scenarios on Javascript . Identify the output of the below program async function* fx() { yield await Promise.reject(1); } let genobj = fx(); genobj.next().then(v => conso...Apr 17, 2024 · 2 min readmahavir.hashnode.dev
Test Your JavaScript Skills : ES9 (JavaScript 2018) - 44Introduction Namaste, In this blog I will discuss 10 code scenarios on Javascript . Identify the output of the below program async function* fx() { yield await Promise.resolve(1); yield await Promise.resolve(2); yield await Promise.r...Apr 17, 2024 · 3 min readmahavir.hashnode.dev
JavaScript 2016 - New FeaturesExponent Operator The exponent operator is represented by **(double asterix). It is used for computing the exponent(power of) of the expression. let a=10; let b=3; let c = a**b; console.log("powerof", c); //1000 console.log("**", 3**2,2**5); // 9 32 ...Apr 17, 2024 · 1 min readmahavir.hashnode.dev