Mar 26 · 7 min read · In the early decades of JavaScript, developers relied almost exclusively on two fundamental data structures for managing collections: the Object for key-value mapping and the Array for ordered lists.
Join discussion
Feb 7 · 3 min read · A function that: Accepts another function as an argument, Or Returns a function. const diameter=function(radius){ return 2*radius; } Array.prototype.calculate = function(logic) { const output = []; for (let i = 0; i < this.length; i++) {...
Join discussionAug 29, 2025 · 6 min read · Arrays are one of the most important parts of JavaScript. Often, we need to loop through arrays and perform some action — like doubling numbers, filtering values, or adding everything together. JavaScript gives us some very useful methods: forEach()...
Join discussionJul 28, 2025 · 2 min read · JavaScript’te map() fonksiyonu, temel kullanımı itibariyle dizilerle çalışmamızı, dizilerdeki elemanların iterable olarak istenilen fonksiyonla farklı sonuçlar çıkartılarak zenginleştirilmesini ifade eder. Bunu, her elemana, yazılan callback fonksiyo...
Join discussion
Oct 15, 2024 · 6 min read · 1. forEach() Function The forEach() method is used to execute a provided function once for each element in an array. It does not return a new array; it simply iterates over the array. Syntax: array.forEach(callback(currentValue, index, array)); cal...
Join discussionJul 24, 2024 · 2 min read · Filter The filter method creates a new array with all elements that pass a test implemented by the provided function. It doesn't change the original array but returns a new one based on the specified condition. Example: const products = [ { id: 1, ...
Join discussion