Tuan Tran Vanblog.tuanhadev.tech路Dec 8, 2024馃敟 Mastering JavascriptWhen we take our first steps into the wonderful world of programming, we get to see for ourselves what it does for millions of people. It鈥檚 thanks to programming that the lives of so many people are made easier, just by pressing a few keys on their d...JavaScript
Pablo Aballepablo-aballe.hashnode.dev路Nov 12, 2024JavaScript forEach: What Most Developers Do Wrong 馃槺When working with JavaScript arrays, one method seems to be universally popular: forEach. But is it really the best choice for every situation? 1. The Hidden Problem: Modifying Arrays with forEach 馃洃 forEach is often used for simple iteration, but ...1 likeFront-EndDeveloperMistakes
Darshit Anjariadarshitanjaria.hashnode.dev路Oct 21, 2024Shallow Copy vs Deep Copy in JavaScript: Understanding Object CloningIntroduction Have you ever wondered why changing a copied object in JavaScript also affects the original one? This strange behavior occurs when you don't realize you're dealing with a shallow copy rather than a deep copy. In JavaScript, objects and a...30 readsobject-cloning
Yasin Sarkaryasinsarkar.hashnode.dev路Oct 20, 2024馃専 Understanding the Spread Operator and Rest Operator in JavaScriptJavaScript has two versatile features, the Spread Operator and the Rest Operator, which are both represented by three dots (...). While they look the same, they have different roles based on the context in which they're used. Let鈥檚 break down each of...JavaScript
Yasin Sarkaryasinsarkar.hashnode.dev路Oct 19, 2024Foreach vs. Map: A Comprehensive Comparison for JavaScript Developers 馃殌When working with arrays in JavaScript, you often need to iterate over each element. Two commonly used methods for this purpose are forEach and map. While they might seem similar at first glance, they serve different purposes and have distinct behavi...2 likesJavaScript
Nikita Sarkanianikitasarkania.hashnode.dev路Oct 2, 2024Security Risks of Inline Event Handlers in React.js (And How to Avoid Them)If you鈥檙e a React.js developer, chances are you鈥檝e dropped an inline event handler into your code without even thinking twice. It鈥檚 so easy to do! You might write something like this: <button onClick={() => alert('You clicked me!')}>Click Me</button>...84 readsReactSecurity
Darshit Anjariadarshitanjaria.hashnode.dev路Sep 22, 2024Mastering JavaScript: Understanding and Using the Null Coalescing OperatorJavaScript continues to evolve, introducing new features that enhance its usability and make developers' lives easier. One of these recent additions is the Nullish Coalescing Assignment operator (??=), introduced in ECMAScript 2021. In this blog post...31 readsNullCoalescing
Sriram Bsriram23.hashnode.dev路Aug 4, 2024Mastering Type Coercion in JavaScriptType coercion in JavaScript refers to the conversion of one type to another, either explicitly or implicitly. JavaScript is known for being a loosely typed language (sometimes referred to as 'weakly typed,' though I prefer not to use that term 馃槉). T...41 readsJavaScript
Shivam Kumarshivammishra828.hashnode.dev路Jul 31, 2024Understanding Abstract vs. Strict Equality in JavaScript: Beyond the BasicsIn the realm of JavaScript development, equality comparisons often lead to confusion and misconceptions, especially when it comes to Abstract Equality (==) and Strict Equality (===). Many developers, especially those new to JavaScript, might believe ...1 like路40 readsJavaScript
Manish Chavanmanishchavan.hashnode.dev路Jul 15, 2024Most useful JavaScript methods You must need to knowIn this article, we will focus on some of the important JavaScript methods. The sections will be broken down by module. Javascript String Methods 1. charAt() const name = "Thor" console.log(name.charAt(0)) //T In another way, we also find a specific...2 likesJavaScript