Reply to post: Re: Easily javascript

Official: Perl the most hated programming language, say devs

JulieM Silver badge

Re: Easily javascript

Does that alert "0.10.2" by any chance?

Usually whenever I want to add two numbers in JavaScript, I do it by subtracting a negative number; just to make sure it's not going to mistake either the addent or augend for a string and perform concatenation instead.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019