Comments

5 Common JavaScript Gotchas That You Should Avoid

JavaScript Gotchas Today JavaScript is the most popular language among developers. Modern frontend development has benefited a lot from JavaScript and its rise. It has definitely emerged as one of the most sort after skill in the programming world with plenty of job opportunities. Learning JavaScript at the beginning may seem easy, but the language […]

Tags: , ,
Comments

== vs === vs Object.is()

Have you ever been stuck with a problem in your application and realize the issue is due to equality(==) operator. I know I have!! But why exactly this happens? The comparison between values is done using 2 things: a) Value which is your operand b) Type which is the type of your operand like string, […]

Tags: , ,
Comments

What is Strict Mode in JavaScript?

JavaScript Strict Mode is a new feature in ECMAScript 5 that enables you to code a program, or a method, in a “strict” operating context. It is a way to opt into a restricted variant of JavaScript. Hence, implicitly opting-out of “sloppy mode”. This strict context prevents from taking some actions. As a result, it […]

Tags: ,
Comments

Most Common Array Operations That You Should Learn In JavaScript

In this post, we are going to take a detailed look at the most common Array operations that you should learn in JavaScript. These operations are very important in JavaScript programming, especially if you are just starting to learn JavaScript. Adding Elements We have 3 methods to add elements to an array, depending on where […]

Tags: ,
Comments

What are Higher-Order Functions in JavaScript?

Have you heard your peers talk about Higher-Order functions in JavaScript? Don’t worry if you are lost in the conversation and are unsure about what it is. In this post, we will learn about Higher-Order functions, and why they are useful. Let’s get the definition out of the way: A function that accepts and/or returns […]

Tags: ,
Comments

Understanding JavaScript Closure

A JavaScript closure is the combination of a function (which may be nested together) and the lexical environment within which the particular function is declared. Lexical environment is the internal JavaScript engine construct that holds identifier-variable mapping. Also, a JavaScript variable may be local or global. While the global variables are declared in global scope […]

Tags: ,
Comments

What is “this” in JavaScript?

Understanding of this variable in JavaScript requires very basic knowledge of JavaScript. this keyword defines an object, that object which is executing the current bit of JavaScript code. In JavaScript, “this” variable is a variable that every execution context gets, in a regular function call. Every JavaScript function has a reference to its current execution […]

Tags:
Comments

React Fiber

Before we understand how & what fiber is, let us understand what exactly happens when you want to render something on the Browser using react It includes 2 main components Reconciler Renderer Reconciler All the changes that needs to be applied to the current tree of React Elements to reflect the updated state on the […]

Tags: ,
Comments

What Are Pure Functions?

JavaScript developers are embracing Functional Programming quite a lot these days, and there is a huge advocacy to write Pure Functions. Now, what are Pure Functions? Not long ago, I learned the concept of Pure Functions, and to my surprise, I was already writing many pure functions, without realising that there was a term for […]

Tags: ,
Comments

JavaScript: var, let and const

If you are a JavaScript programmer, you may have seen the usage of different types of keywords like let, var and const all over your code. Do you know the difference between them and which one to pick? If you are confused about the differences between let, var and const keywords in JavaScript, this post […]

Tags: , , ,
Connect with Me
  • Categories
  • Popular Posts