+ 2

Can anyone help with this simple bit of Javascript? UPDATE: SOLVED! Thank you!

My first project! Please take a look, give it a go, ignore its ugly bare bones, and please let me know if you have a fix for user input/form validation (to prevent NaN and force numbers only), and if there's a way to add commas to output (i.e. $X,xxx,xx)-- Thanks! 😄 ** here's the updated version! https://code.sololearn.com/W83853CJAcb4/?ref=app

5th Aug 2019, 8:23 PM
will
will - avatar
5 Respuestas
+ 4
I think you should look at this http://javascript.info/try-catch
5th Aug 2019, 8:32 PM
Robin R.
Robin R. - avatar
+ 4
You are welcome, will Keep up! 💪
6th Aug 2019, 12:48 AM
Gordon
Gordon - avatar
+ 1
Robin R. Thanks for taking the time to respond! It's all new to me but I'll play with try/catch and see if it sticks :)
5th Aug 2019, 9:05 PM
will
will - avatar
+ 1
Gordon Magic! Thank you so much! And not just for the fix! Really appreciate you taking the time to give me notes. It doesn't come easy for me and It's really only just starting to click. There's still sooo much to learn and feedback from experienced developers is invaluable.
5th Aug 2019, 10:13 PM
will
will - avatar