on-internet
← Community

Convert individual digit characters into number for arithmetic, then convert back to string

Stack Overflow ·

How can I do the following in JavaScript? Concatenate "1", "2", "3" into "123" Convert "123" into 123 Add 123 + 100 = 223 Covert 223 into "223"

Comments

Sign in or sign up to comment and upvote.

No comments yet.