Category: Javascript

Javascript 0

Empty an Array with JavaScript

Empty an Array with JavaScript is the common task which every developer performs. Most of the developers use the wrong approach of emptying the array in JS. Method 1: Empty an Existing Array in...

Javascript 0

Creating multiline strings in JavaScript

There are many ways where we could easily create multiline strings using JavaScript. Some of the best methods are listed in the below examples. Creating multiline strings in JavaScript can be achieved by concatenating...

Javascript 0

Create GUID/UUID in JavaScript

There might be situations where you would be creating GUID in Javascript, Currently JavaScript doesn’t have any Built-in method to generate the GUID/UUID. We could use Math.random() or Date().getTime() and generate a random GUID...