NSNitesh Singh incodecrafters.hashnode.dev·Mar 15 · 3 min readFunction Declaration vs Function Expression: What’s the Difference?We would have studied in maths that a function is something where it takes some gebrish and return some other gebrish. Okay!! Let's Start from Beginning. When we write a programs, we often repeat the 00
NSNitesh Singh incodecrafters.hashnode.dev·Mar 15 · 4 min readArray Methods You Must Know1. push() and pop() These methods work on the end of the array just a like arraylist in java or a real world example can be a person adding up in back of the queue or a respectful person giving up his00
NSNitesh Singh incodecrafters.hashnode.dev·Mar 15 · 3 min readUnderstanding Arrays in JavaScript!When we start programming, we often store values in a single variable but what if we want to keep a set of same data in a same variable for example set of numbers, set of fruits, set of vegetables (js00
NSNitesh Singh incodecrafters.hashnode.dev·Mar 15 · 3 min readUnderstanding Operators in JavaScriptIn programming, operators are symbols that perform some operation on values. Example in normal math: 5 + 3 = 8 Here + is an operator. In JavaScript operators are used for: doing maths comparing val00
NSNitesh Singh incodecrafters.hashnode.dev·Mar 15 · 3 min readUnderstanding Control Flow in JavaScriptIn programming, control flow means the order in which the program runs instructions for example when you are walking on a road in case you have two path then you choose one of them same like that we h00
NSNitesh Singh incodecrafters.hashnode.dev·Oct 12, 2024 · 2 min readRendering Lists in React: Using for Loop vs mapWhen working with arrays in React, you often need to render a list of components. There are two common ways to achieve this: using a for loop or the map method. In this blog post, we'll explore both m00
NSNitesh Singh incodecrafters.hashnode.dev·Oct 8, 2024 · 3 min readUnderstanding State Updates in React: Using `setCount` Inside and Outside `useEffect`The difference in how you use setCount inside and outside of useEffect is due to how React handles state updates and closures. Outside of useEffect When you use setCount(count + 1) outside of useEffec00