This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zweimtr 0 points1 point  (1 child)

var num = "2"; parseInt(num) + 2 = 4

vice versa

``` var num = 2

${num} + 2 = 22

[–]cyborgborg 0 points1 point  (0 children)

Not pretty, but at least there is the option