gracekrcx / weekly-notes

4 stars 0 forks source link

convert a string to a number using the unary plus operator (+) #139

Open gracekrcx opened 1 year ago

gracekrcx commented 1 year ago

parseInt vs unary plus

How to Convert a String to a Number in JavaScript Unary plus (+) parseInt vs unary plus, when to use which?