Arrays 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...Nov 30, 2023 · 3 min readayushdhakal.hashnode.dev
Arrays 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...Nov 28, 2023 · 4 min readayushdhakal.hashnode.dev
Maths 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...Nov 24, 2023 · 2 min readayushdhakal.hashnode.dev