Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

update the variable newsupdated to the day 15 using date methods. 1 let…

Question

update the variable newsupdated to the day 15 using date methods.
1 let newsupdated = new date(2010, 3, 21);
2
3 / your solution goes here /
4

Explanation:

Step1: Use setDate method

newsUpdated.setDate(15);

Answer:

let newsUpdated = new Date(2010, 3, 21); newsUpdated.setDate(15);