Difference between == and === operatorsLet's dive deep to see how these comparison operators work in different cases IsLooselyEqual (==) operator Let's assume two values are given, the first value as A and the second value as B. Now under different scenarios, we can get - If A and B are o...Feb 25, 2023 · 2 min readmainak99.hashnode.dev
Why console gives "undefined" after printing a output?Given in the above image what you expect the console to print out? 42, Right. But did you notice? That it also gives "undefined" in its second line of output. Why is that? let's dive deep into it and understand what actually works behind it. The abov...1PFeb 15, 2023 · 2 min readmainak99.hashnode.dev
Hoisting in javascript variableIn these post we will discuss about the main idea of hoisting in variable. Hosting in variable - For var keyword - If we are given with the following code snippets - console.log(newVar); /* => undefined */ var newVar = "random string" For th...Sep 7, 2022 · 1 min readmainak99.hashnode.dev
Difference between innerHTML, innerText and textContentWhile dom manipulation we should have an idea about the elements where we are manipulating . So in these article we will discuss one main idea about innerHTML, innerText, TextContent with examples. Lets take an example - <p id="select"> We are ...1DSep 7, 2022 · 2 min readmainak99.hashnode.dev