PGPalak Guptainpalakgupta.hashnode.dev·Oct 15, 2021 · 7 min readJavascript FunctionsFunctions Functions are the fundamental building block of any programming language. A function is a set of statements that performs a particular task and can be reused again. A Function is a block of code that is defined once but can be executed or ...00
PGPalak Guptainpalakgupta.hashnode.dev·Oct 14, 2021 · 3 min read5 must known array methodJavascript array map() function The map() function runs a given function once for each element in an iterable. It does not modify the array it is invoked on. The syntax for the map() method is : map(function callback(currentValue, index, array)) { … ...00
PGPalak Guptainpalakgupta.hashnode.dev·Oct 2, 2021 · 4 min readRandom Color GeneratorThe best way to learn to program is to practice more and build projects. This is a small guide to create a random color generator for yourself. This article will cover how to generate random colors for your projects. Key Concepts covered : Math.rand...00