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...3 min read·ayushdhakal.hashnode.devNov 30, 2023
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...4 min read·ayushdhakal.hashnode.devNov 28, 2023
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...2 min read·ayushdhakal.hashnode.devNov 24, 2023