SVSanjay Vyasinsanjayvyas.hashnode.dev·Aug 18, 2021 · 1 min readConvert functions to fat arrow functionsThis is not for you but for programmers starting out with JavaScript. Here is step by step conversion of a function to fat arrow functions (called Lambda in other languages) Not only fat arrow function are more concise to write in syntax but they als...00
SVSanjay Vyasinsanjayvyas.hashnode.dev·Aug 17, 2021 · 1 min readJavaScript functions or methods?ECMAScript standards are evolving rapidly with lots of new features being added regularly. Sometimes there are new features (like inclusion of class keyword) and sometimes they add to existing features. Recently JS got the ability to define "methods"...02KG
SVSanjay Vyasinsanjayvyas.hashnode.dev·Feb 1, 2021 · 1 min readJavaScript logging trickWe add console.log all over our code during debugging and then once we are done, we have to manually remove those console.log statements. Here is a simple trick which can save us time // Define a no-operation lambda const nop = () => {}; // Now defi...01D