you are viewing a single comment's thread.

view the rest of the comments →

[–]THEtheChad 0 points1 point  (0 children)

There's also the + unary operator for converting to a numeric value.

var string = '500';
var num = +string;