Category: JavaScript

Splice and Slice array methods in JavaScript - Clue Mediator

Splice and Slice array methods in JavaScript

Today we will discuss about the Splice and Slice array methods in JavaScript with example. splice() and slice() both methods look similar, but act in very different ways. Splice and...

Map, Filter and Reduce Operators in JavaScript - Clue Mediator

Map, Filter and Reduce Operators in JavaScript

Today we will provide you an understanding of the Map, Filter and Reduce Operators in JavaScript. These three operators are very useful in JS development. Map, Filter and Reduce Operators...

Do's and don'ts in JavaScript - Clue Mediator

Do’s and don’ts in JavaScript

Today we will provide you the list of the do’s and don’ts in JavaScript as per the Google JavaScript Style Guide. When we are working with the real project at...

Get Current Date & Time in JavaScript - Clue Mediator

Get Current Date & Time in JavaScript

Today we will show you how to get current date & time in JavaScript. We will also show you how to get a current year, month, date, hours, minutes, seconds,...

How to Sort an Array in JavaScript - Clue Mediator

How to Sort an Array in JavaScript

Today, we will explain to you how to sort an array in javascript using sort method of the array. Sorting is nothing but lets you arrange data in a required...

Compare two dates in JavaScript - Clue Mediator

Compare two dates in JavaScript

In this article, we will explain to you the best way to compare two dates in javascript and give you a simple guide that will help you to get the...

Spread Operator in JavaScript - Clue Mediator

Spread Operator in JavaScript

Today we will explain you about the spread operator in JavaScript. Spread Operator is introduced by JavaScript ES6 (ECMAScript 6). The syntax is three dots(…) followed by the array (or...