Nullish coalescing and optional chaining Explained!In JavaScript, there are two operators - nullish coalescing and optional chaining. Nullish coalescing is used to check whether a value is nullish or not. The Optional Chaining Operator is there to safely call upon a variable or function without knowi...Feb 24, 2023·2 min read
Difference between innerHTML, innerText, textContentIn Javascript, there are three properties that can be used to set or return an HTML element's content in the DOM: innerHTML, innerText, and textContent. Sometimes it becomes very confusing which one to use, so in this post I break down the subtle dif...Sep 2, 2022·2 min read
Introducing querySelector() and querySelectorAll() on elements in JavaScriptI recently learnt about JavaScript so thought why not share my learnings? I will share how to use the JavaScript querySelector() and querySelectorAll() to find elements based on CSS selectors. querySelector() querySelector() is a function that return...Aug 31, 2022·2 min read