Sshyamendrahazracodesinblog.shyamhz.dev·May 8 · 7 min readMap and Set in JavaScriptAs JavaScript applications grow in complexity, choosing the correct data structure becomes extremely important. While Objects and Arrays are the most commonly used data structures, they were not desig00
Sshyamendrahazracodesinblog.shyamhz.dev·May 8 · 10 min readSynchronous vs Asynchronous JavaScriptWhen learning JavaScript, one of the most important concepts to understand is the difference between synchronous and asynchronous execution. Everything in JavaScript depends on how code runs. Does it 00
Sshyamendrahazracodesinblog.shyamhz.dev·May 8 · 6 min readAsync/Await in JavaScript: Writing Cleaner Asynchronous CodeAs JavaScript applications evolved, handling asynchronous operations became increasingly complex. First came callbacks. Then Promises improved structure and readability. But even Promise chains can be00
Sshyamendrahazracodesinblog.shyamhz.dev·May 8 · 5 min readDestructuring in JavaScriptWhen working with arrays and objects, we often need to extract values from them. Traditionally, this required accessing each property or index manually. As applications grow, this repetitive extractio00
Sshyamendrahazracodesinblog.shyamhz.dev·May 7 · 5 min readSpread vs Rest Operators in JavaScriptWhen you see three dots ... in JavaScript, it can mean two different things depending on how it is used. Sometimes it expands values.Sometimes it collects values. These two behaviors are called the sp00
Sshyamendrahazracodesinblog.shyamhz.dev·May 7 · 7 min readString Polyfills and Common Interview Methods in JavaScriptWhen you manipulate strings in JavaScript, you rely on built-in methods like toUpperCase(), includes(), repeat(), and many others. These methods work reliably because the JavaScript engine implements 00
Sshyamendrahazracodesinblog.shyamhz.dev·May 7 · 4 min readFunction Declaration vs Function Expression: What Is the Difference?What Functions Are and Why We Need Them A function is a reusable block of code that performs a specific task. Instead of repeating the same logic multiple times, we define it once and call it whenever00
Sshyamendrahazracodesinblog.shyamhz.dev·May 7 · 4 min readThe Magic of this, call(), apply(), and bind() in JavaScriptUnderstanding this in Simple Terms In JavaScript, this refers to the object that is calling the function. A simple way to think about it is: this answers the question: Who is calling this function? 00
Sshyamendrahazracodesinblog.shyamhz.dev·May 7 · 5 min readTemplate Literals in JavaScriptWhen writing JavaScript, one of the most common tasks is building strings. Whether you are displaying user information, generating messages, or constructing HTML, string manipulation happens everywher00
Sshyamendrahazracodesinblog.shyamhz.dev·May 7 · 5 min readCallbacks in JavaScript: Why They Exist1. Functions as Values in JavaScript In JavaScript, functions are treated like any other value. This means they can be stored in variables, passed into other functions, and returned from functions. Be00