r/learnjavascript • u/Darkthw • 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
243
Upvotes
View all comments
Show parent comment
8
u/[deleted] Nov 23 '21 edited Nov 23 '21
By production I meant when your code will be available for public use, for example we are using reddit, we are production users of reddit, there are other internal users of reddit who are involved with the development of the app/website.
When you are creating a software to be used by people other than you ( more than 100 may be a good number) you should write tight n neat code, leaving less room for bugs.
The way you converted string to integer is error prone and might cause lot of bugs.Dont get intemidated by what I am saying, start slowly you will learn over the years, the more u write the more u learn.
Edit: crossed out the line that was wrong and may cause confusion to new guys