Jae Yeon Jungjaeyeonjung.hashnode.dev·Jul 15, 2024Map ObjectES6 Iterable like an array It consists of key-value pairs like an object However, unlike objects, maps can have any value as a key (Objects can only have strings or symbols as a key) use methods to insert & delete values let jane = new Map(); ...JavaScript
Abhishek Dandriyalabhishek-dandriyal.hashnode.dev·Apr 9, 2024Map, filter and reducewhat is map() ? A higher-order function in programming is used to transform each element in an array according to a given function. const nums = [1,2,3,4]; const multiplyThree = nums.map((num,i,arr)=> { return num * 3; }) console.log(multiplyThr...1 likemap-filter-reduce
Pranay Sanjulepranaysanjule.hashnode.dev·Nov 29, 2023Loops & Iteration in JavaScript (Advanced)Note: Try to code by yourself and understand the output Introduction In computer programming, a loop is a sequence of instructions that repeats until a specific condition is met. Loops are a fundamental and powerful programming concept. There a...30 readsLoops in Javascript
Iman Roustairousta.hashnode.dev·Apr 13, 2023JavaScript Map and WeakMapIn JavaScript, Map is a built-in object that provides an easy way to store and manipulate data in key/value pairs. Map vs. Object The main difference between a Map and an Object in JavaScript is the type of their keys, as well as how they store and m...370 readsJavaScript