9 followers
Software Engineer at Microsoft, writing about Software Development Concepts and trying it to create the right mental model in the minds of readers
We know when we want to iterate over an object, we can iterate over the keys by using for..in loop. It iterates over the list of enumerable properties on an object (including its [[Prototype]] chain). If we want to iterate over the values like we do...
Pre-requisite: What is the REST approach for writing and handling APIs and web services. What is GraphQL GraphQL is an API standard that provides a more efficient, powerful and flexible alternative to the REST approach. It was developed and open-sou...
Ever since I started learning and coding in JavaScript, the one thing that has always puzzled me and messed with my head was the this keyword. It gave me nightmares when I started learning React. It took me quite a while to understand and actually gr...
This is the Part I of the blog series in which I will explain Closures in Javascript using examples. Let us say that we want a function called addByX which takes an argument and increment its value by x. So, if we have addByTwo(n), it will return n+2...
setState() is used in React to update the state of any component. Now setState() does not immediately mutate this state, rather it creates a pending state transition. Accessing state immediately after calling setState() can potentially return the exi...
Something about DOM… Before we go any further with this article, we first need to understand what DOM is. I won’t go deep in this because this article is about Virtual DOM. DOM (Document Object Model) is an abstraction of your webpage wherein the ele...