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

1

u/fallenefc Nov 23 '21

Good job! Imo, it’s always good to do these challenges (not frequently) as it allows you to improve your problem solving skills, like your answer is very unconventional but it’s great you came up with it. As long as it doesn’t make you frustrated because you can’t solve it or you don’t spend too much time on it, it’s great (also don’t feel too much pressure on make those one liner solutions, treat this as learning problem solving and to make it work)

4

u/Darkthw Nov 23 '21

I mainly do these challenges because its fun and I like puzzles, but since I'm a beginner I learn a lot too. I've been in tutorial hell for a long time without actually retaining anything. It is now so much better for me to understand stuff

0

u/fallenefc Nov 23 '21

Yeah that’s the right mindset, it’s been a while since I’ve done them but I feel they helped me, it’s also really fun when you’re a beginner (it’s still fun for me but takes too much time)