Category: How To

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...

AngularJS 0

Learning AngularJS Expressions in HTML

AngularJS Expressions AngularJS Expressions are like the JavaScript code snippets that are mainly used for binding purposes. Angular expressions are always used to bind the data to HTML DOM element. All the expressions come inside...

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...

Javascript 0

How to Submit a Form using JavaScript

The easiest way to submit a form using JavaScript is by using HTMLFormElement.submit() method. This method does something similar to activating a submit button of the form. If a form control (such as a...