#javascript
Posts tagged “javascript”.
7 posts
All posts tagged #javascript
JavaScript
How to return multiple items in map function in JavaScript
The map() function enables you to loop over every element in an array and modify it and then return a different element to replace the initial element. The JavaScript map() functio
JavaScript
Removing first occurrence from a string in JavaScript
Removing first occurrence from a string in JavaScript using different methods
JavaScript
How to remove a property from an object in JavaScript
JavaScript Object is a collection of related data and functionality. Objects are used to store collections of various data and complex entities. To create an object in JavaScript,
JavaScript
How to remove last element from an array in JavaScript
The JavaScript array allows you to store several pieces of data in one place. The elements of an array are stored in square brackets […] . Every element in an array is separated by
JavaScript
Why you should use ?? instead of || in JavaScript
Why you should use ?? instead of || in JavaScript. The proper use and application of ?? explained.