Harish

I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me at - [email protected]

How To Get UNIX Timestamp In JavaScript

The Unix timestamp is the number of seconds between a specific date and the Unix Epoch. In this tutorial, we have explained how to get Unix timestamp in milliseconds and seconds using javascript. Get UNIX Timestamp in miliseconds: To get timestamp in miliseconds, you can use Date.now() method

Another method is with using valueOf() …

How To Get UNIX Timestamp In JavaScript Read More »

How to Clear an Array in JavaScript

There are different ways to empty an array in javascript, we have mentioned 4 ways to clear an array using javascript. For example we have javascript array variable:

Let’s check out different ways to empty an array. 1) Setting array length to zero: In this method, set array variable lenght to zero.

2) …

How to Clear an Array in JavaScript Read More »