Archive for the 'Javascript' Category

Javascript Sleep Function

I want a sleep function in javascript.

In Javascript, it is setTimeout().

setTimeout() – executes a code some time in the future

Continue »

Javascript String Empty Check

What’s the best way to check for an empty string in Javascript?

If you just want to check whether there’s any value, you can do

Continue »