<JavaScript> Reference

VORBLY CODE - CODE YOUR WEBSITE

JAVASCRIPT REFERENCE

JavaScript (or JS) enables users to create interactive webpages and is an essential code to learn for websites and web applications. Most modern websites use JavaScript.

The JavaScript Reference serves as library to define various JS elements such as arrays, date, json, math, operators and regular expressions (regexp) to help you build your website.

arrow&amp;v

JavaScript Date

JavaScript Date object is used to work with dates and times.

For Example:

var d = new Date(); // Create a new date //
var d = new Date(dateString); // Create a new date //

NAME

DESCRIPTION

CATEGORY

UTC()

Returns the number of milliseconds in a date since midnight of January 1, 1970, according to UTC time

Methods

getDate()

Returns the day of the month (from 1-31)

Methods

getDay()

Returns the day of the week (from 0-6)

Methods

getFullYear()

Returns the year

Methods

getHours()

Returns the hour (from 0-23)

Methods

getMilliseconds()

Returns the milliseconds (from 0-999)

Methods

getMinutes()

Returns the minutes (from 0-59)

Methods

getMonth()

Returns the month (from 0-11)

Methods

getSeconds()

Returns the seconds (from 0-59)

Methods

getTime()

Returns the number of milliseconds since midnight Jan 1 1970, and a specified date

Methods

 

LEARN CODING FOR FREE!

WEB DESIGN & DEVELOPMENT TIPS & ADVICE