Menu

Tech tip - leading zero means integer is in octal

A leading zero can mean an integer is in octal in JavaScript.

I learnt this when ESList warned about a time (in milliseconds) I had written as '0960'.

There are more tips at: bbingo.xyz/t

Posted by Bert Beckwith 2023-09-17 Labels: JavaScript

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.