HomeBadges
Blog Author Picture

Rajat Jain

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

Make your JS objects iterable

Pinned article
Dec 26, 20206 min read

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...

GraphQL 101 - What and Why

Nov 8, 20203 min read

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...

“this” in JavaScript DEMYSTIFIED!!

Sep 25, 20207 min read

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...

Part I : Understanding Closures in JS

Sep 20, 20203 min read

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...

Async Nature of setState()

Feb 23, 20192 min read

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...

Virtual DOM — it fascinates me

Feb 22, 20194 min read

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...

© 2021 Rajat Explains

PrivacyTerms
Proudly part of