saurabh suryavanshisaurabhsuryavanshi.hashnode.dev·Oct 18, 2023Difference Between ES5 and ES6 in JavaScriptWhen you delve into the realm of JavaScript, you'll often come across terms like ES5 and ES6. But what exactly are they? Essentially, they are versions of ECMAScript, the scripting language specification that serves as the foundation for several prog...57 readsJavaScript
R Chantechcode.hashnode.dev·Jan 21, 2023How to use map() and filter() methods on the same array in JavaScript?map, filter and reduce methods were introduced in ES5. These methods are applied to arrays. ✨Map() map method in javascript returns a new array depending on the condition applied to the current array for each element. It doesn't change the original a...FrontendJavaScript
Ajay Baraiyaajaybaraiya6.hashnode.dev·Sep 3, 2022ES5 Array.map() function for #React Quick NotesArray.map() function iterate through every element in array only once. It do not alter original array but return new array when called. let myArray = [1,2,3]; var newArrayMultipleOfOldArray = myArray.map(x=>x*2); console.log(newArrayMultipleOfOldAr...68 readses5
Arungovindappaarun2.hashnode.dev·Jun 10, 2022‘use strict’; / Strict mode in JavaScriptDear Reader, I have got one more cool stuff in JavaScript to move closer to the language, which is Strict Mode. We don’t see this that common in today’s code bases, compare to back in the days it was introduced, As later ES6 made it default in some ...4 likes·76 readsJavaScript
Hitesh Talrejaht02.hashnode.dev·May 19, 2022When and why you should use ES6 arrow functions/tradional function — and when you shouldn’tIn this article, you'll learn about JavaScript arrow functions and regular functions, what the major difference between them is, and when we should use one over the other. You'll see lots of examples that illustrate how they work. Table of contents ...112 readsfunctions
Dioka Ejionuemejayandcode.hashnode.dev·Apr 21, 2022JavaScript FunctionsFunctions in JavaScript(and near damn every programming language) are pieces of code/statements of code that perform a specific task. These statements are grouped together into a function for the main purpose of being reusable. Functions in JavaScrip...1 like·148 readsJavaScript
eesh guptawebdevjourney.hashnode.dev·Jan 23, 2022Evolution 🌪 ES5 ⏳ES7CallBacks(ES5)? Callback refers to a function passed as an argument to another function. It helps in asynchronous programming. Let's understand it using a real-life example. Sample Code:- function display(sum) { document.getElementById("display-wind...38 likes·301 readsasynchronous
Abhayitselliot.hashnode.dev·Jun 18, 2021What the heck is Call, bind, apply ?As JavaScript developers, most of the time we are pretty confused about the Call, bind, apply and their use in JavaScript. So let's try to understand. 1. CALL & APPLY Both these methods are simply known as Immediately Invoked Function. What basicall...29 readsJavaScript
Yousaf Khanyousaf.hashnode.dev·Dec 26, 2020Understanding "Closures in Loop" Problem and How it is Solved in ES6Note: Before you read this article, i suggest you to read: How Closures Work in Javascript. Reading that article will give you the background knowledge you need to understand this article. "Closures in Loop" problem is a familiar problem among javasc...507 readsJavaScript
Surya Teja Karrablog.suryatejak.in·Sep 11, 2020Here's how Angular 10 broke my app in older browsersAfter upgrading my Angular 9 web app to v10, I finally got to meet the infamous "Angular white screen of death". This new version broke the app completely. Nothing works. Read on to learn how I figured out the solution. Background: I keep a stock ng ...78 readsAngular