Problem 2758 · Easy

Next Day

Add a nextDay() method to every JavaScript Date object. Calling it returns the following calendar day as a YYYY-MM-DD string and leaves the original date as it was.

Open the interactive visualisation