How To Get a Timestamp in JavaScript

Learn to use getTime(), now(), and the unary plus operator

Jonathan Hsu
Better Programming
Published in
3 min readJan 4, 2020

--

Photo by Markus Spiske on Unsplash

Working with time is a fundamental skill in any programming language. Some languages have an easier time than others. The latter make what seems like a simple task feel complex enough to get your head spinning.

--

--