Course contentsShow
JavaScript
Lesson 299 of 2,7238. Type CoercionPro lesson

Date Coercion in Arithmetic

Why +new Date() gives a timestamp but new Date() + 1 gives a string, due to hint preferences.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.