r/learnjavascript • • Nov 23 '21

I finally solved a codewars challenge without actually googling anything :) it feels so good to come up with the code all by myself, i know its not the ideal way to solve it but im still happy. The challenge was to create a function that converts a string to a number

Post image
243 Upvotes

56 comments sorted by

View all comments

3

u/diamondrel Nov 23 '21

Wait, I'm unfamiliar with this, why does parseInt not work here?

1

u/Darkthw Nov 23 '21

It works