Lazy-loading functions

Lazy loading functions are also known as dynamic function loading, where part of program is loaded into storage only on request.  For example, when a script has to be...

Functions binding and currying

Function binding Function binding is a procedure to keep the

Function throttling

Events such as window resize,

Repeating timers with setTimeout() method

The setTimeout() method is a timing event where a set of code is executed after a specified number of milliseconds. The setTimeout() does not stops the execut...

Repeating timers with setInterval() method

The setInterval() method is a timing event that executes a method after specified time given in milliseconds, repeatedly. That is, if the timer is set to 3 seconds, t...

Stop watch made in JavaScript

Timing functions in JavaScript can be used in many different modes of operation and functions. Mostly they are used for checks, timeouts, and simple timers, but they can be used for more complex pr...

Simple form evaluation with JavaScript

JavaScript can be used to evaluate an user's inputs into a form on a HTML webpage. The adventage of using JavaScript to evaluate...

JavaScript arrays comparison and sortation

JavaScript arrays may be manipulated with numerous built-in methods and properties. However to compare multiple depth item...

Drag-and-drop events with JavaScript

Drag and drop is an useful web feature where an object is grabbed by the user and dropped to a different location on a web-page.