Question:You want to create a variable called newDate that contains the date February 1 of the current year. Which option will you use? 

A var newDate=new Date(today.getFullYear(), 2, 2) 

B var newDate=new Date(today.getFullYear(), 1, 1) 

C var newDate=new Date(today.getCurrYear(), 2, 1) 

D var newDate=new Date(today.getCurrYear(), 1, 1) 

+ Answer
+ Report
Total Preview: 775

Copyright © 2024. Powered by Intellect Software Ltd