Skip to content
Advertisements

Category: javascript lessons

JavaScript Let,Var and Const

JavaScript Let,Var and Const

In ES6, a new way to define the variable is const and let keywords. Before ES6, developers used "var" to report different variables.

Date.setTime()

JavaScript Date.setTime()

Javascript Date setTime() method sets the Date object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.

Date.setHours()

JavaScript Date.setHours()

The JavaScript Date setHours () method is a built-in function. Sets the time of a specific date according to local time

Date.setDate()

JavaScript Date.setDate()

The JavaScript Date setDate () method is a built-in function. This metadata sets the day of the month for a specific date by local time.

Date.getTime()Date.getTime()

JavaScript Date.getTime()

The JavaScript getTime () method returns the number of milliseconds from January 1, 1970 (midnight (hour: 00.00)) to the specified date.

Date.getMonth()

JavaScript Date.getMonth()

JavaScript Date The getMonth () method handles the specified date. returns the month of the date as a result of this operation.