QUESTION IMAGE
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
Step1: Use setDate method
newsUpdated.setDate(15);
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
let newsUpdated = new Date(2010, 3, 21); newsUpdated.setDate(15);