The different variant of Date() constructor to create date object is/are ___________ i. new Date(date) ii. new Date(milliseconds) iii. new Date(date string) iv. new Date(year, month, date)
The different variant of Date() constructor to create date object is/are ___________ i. new Date(date) ii. new Date(milliseconds) iii. new Date(date string) iv. new Date(year, month, date) Correct Answer hour, minute, second, millisecond
Date() is a predefined object type in javascript. There are 4 ways to create a new date object:new Date(), new Date(year, month, day, hours, minutes, seconds, milliseconds), new Date(milliseconds), new Date(date string).
মোঃ আরিফুল ইসলাম
Feb 20, 2025