JavaScript Set vs Array | Difference
The main difference between JavaScript Set and Array is that an array can have duplicate values a set can’t. The array is a type of… Read More »JavaScript Set vs Array | Difference
Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology & like learning technical.
The main difference between JavaScript Set and Array is that an array can have duplicate values a set can’t. The array is a type of… Read More »JavaScript Set vs Array | Difference
Use the size property to get the length of a Set in JavaScript. The size accessor property returns the number of elements in a Set… Read More »JavaScript set length | Example code
JavaScript sets Object is a collection of unique values. It stores unique values of any type, whether primitive values or object references. To create a… Read More »JavaScript sets | Object
JavaScript BigInt allows you to represent whole numbers larger 253 – 1. The bigint is the primitive type like number, string, symbol, boolean undefined, and null.… Read More »JavaScript BigInt
JavaScript exponentiation operator (**) will return the first operand’s power to the second operand. ECMAScript 2016 provided an alternative way to get a base to… Read More »JavaScript Exponentiation operator **
JavaScript do not provide parseLong() function. You can use the parseFloat() method, Int in javascript is a float since JavaScript has only one number type.… Read More »JavaScript parseLong | Code
JavaScript toLocaleString() Method returns a Date object as a string, using locale settings. The default language depends on the locale setup on your computer browser.… Read More »JavaScript toLocaleString() | Method
You can make searching even more powerful when it also changes (or replaces) the text you match. Use replace() on a string where first parameter… Read More »JavaScript replace regex capture group
Use parseFloat() method to Parse decimal in JavaScript. Here is the code converting string to 2 decimal. The parseFloat() takes in a string value and… Read More »Parse decimal JavaScript
You can use the Regular expression in replace() method to remove special characters in JavaScript. The caret (^) character is the negation of the set… Read More »JavaScript remove special characters