ADAayush Dhakalinayushdhakal.hashnode.dev·Nov 30, 2023 · 3 min readArrays in JavaScript (Part 2)6. slice(): This method returns the data with the index written in its syntax. The way this works is that we give a starting index and an ending index, the starting index is inclusive and the ending index is exclusive. let names = ['aayush','john','e...00
ADAayush Dhakalinayushdhakal.hashnode.dev·Nov 28, 2023 · 4 min readArrays in JavaScriptSimilar to most programming languages, arrays in javascript are also created to store multiple data in a single variable, removing the tedious task of declaring multiple variables for multiple different data. In JavaScript, there are primitives and o...00
ADAayush Dhakalinayushdhakal.hashnode.dev·Nov 24, 2023 · 2 min readMaths in JavascriptMaths in JavaScript are nothing but a namespace that contains several methods to use functions and properties. The properties and methods of math functions are static. While they serve the same purpose for all engines, they might perform slightly dif...00