Nikita Sarkanianikitasarkania.hashnode.dev·Oct 2, 2024Security Risks of Inline Event Handlers in React.js (And How to Avoid Them)If you’re a React.js developer, chances are you’ve dropped an inline event handler into your code without even thinking twice. It’s so easy to do! You might write something like this: <button onClick={() => alert('You clicked me!')}>Click Me</button>...Discuss·73 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...Discuss·28 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...DiscussJavaScript
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 ...Discuss·1 like·33 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...Discuss·2 likesJavaScript
Dhanush Ndhanushnehru.hashnode.dev·Jun 13, 2024Super useful console.log tricksWhen developing, debugging or troubleshooting web applications, console.log is one of the most frequently used tools by developers. It offers a straightforward method for outputting data to the console, which helps in understanding code execution and...Discuss·10 likesJavaScript
Nirdesh pokharelblog.nirdeshpokhrel.com.np·May 31, 2024The Mystery of Leading Zeros in JavaScript: A Fun DiscoveryOne day, our intern, Mr. Shailendra, whom we call Lala Ji, found something strange. While working on a JavaScript project, he noticed that numbers with leading zeros were acting weird. This made me curious, so I decided to look into it more. What I f...Discuss·1 like·148 readsJavaScript Leading Zeros
Mainul Hasandev.webdevstory.com·Mar 13, 202425 Unnoticeable Features of JavaScriptOften, as developers, we write similar types of code, falling into a pattern that, while comfortable, can sometimes feel mundane. However, the world of JavaScript is vast, filled with advanced features that, when discovered and used, can transform ou...Discuss·10 likesadvance javascript
Aarzoo Islamwithaarzoo.hashnode.dev·Feb 23, 2024JavaScript Hacks You NEED to Know in 2024!Did you know these 6 mind-blowing array methods dropped in June 2023 with ECMAScript 2023? Say goodbye to clunky loops and hello to ✨cleaner, ✨easier, ✨faster code! How many of these have you mastered? findLast(): The findLast() method looks at an a...Discusscodewithaarzoo
Shefalidevshefali.hashnode.dev·Jan 22, 202418 JavaScript Tips : You Should Know for Clean and Efficient CodeIn this post, I'll share 18 JavaScript tips, with examples that you should know for writing clean and efficient code. Let's get started!🚀 Arrow Function You can use arrow functions to simplify function declarations. For example: function add(a, b) {...Discuss·2 likesWeb Development