NSNakul Sharmainnakulsharma.hashnode.dev·Jul 22, 2022 · 3 min readPure functions in JavaScriptIntroduction Before understanding what pure functions are, we should be having a decent knowledge of what functions are in JavaScript. Functions are the fundamental building blocks in JavaScript. In simpler terms, a function is a block of code that p...00
NSNakul Sharmainnakulsharma.hashnode.dev·Jul 21, 2022 · 4 min readOptional Chaining in JavaScriptIntroduction Consider the following line of code: const iceCream = menu?.dessert?.icecream If you've used optional chaining before, then you can easily tell what's going on in the above line of code. The above example is a prominent example of option...00
NSNakul Sharmainnakulsharma.hashnode.dev·Jul 21, 2022 · 4 min readWhat is Hoisting in JavaScript ?Introduction Hoisting is one of the most important concepts in JavaScript. Let's look at an example before we move forward: function sum (a,b) { return a+b; } console.log(sum(5,10)); It is quite clear that the output of the above console log will ...00
NSNakul Sharmainnakulsharma.hashnode.dev·Sep 5, 2021 · 3 min readHow to stay fit as a developer?Being a software developer is assuredly not a very healthy profession. One has to sit in front of a computer, coding all day long or night long, handling errors and deadlines. A typical day with this kind of schedule involves a lot of sitting, which ...01L
NSNakul Sharmainnakulsharma.hashnode.dev·Sep 4, 2021 · 2 min readWhat is a 404 error?Almost all of us encountered a 404 error message while browsing the web. Type a URL or click a link that takes you to a new page & suddenly this appears: Page Not Found. You can encounter this error quite often. But if you find one on your website, y...00