+ 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
5 Respuestas
+ 6
Q.1
isNaN()
https://www.sololearn.com/post/42147/?ref=app
https://code.sololearn.com/WRckR2V3E514/?ref=app
Q. 2
toLocaleString()
https://code.sololearn.com/Wz54VLVMsqde/?ref=app
+ - *
Attempt. and then compare with my fix for you:
https://code.sololearn.com/WypwzY2Ud0UJ/?ref=app
+ 4
I think you should look at this
http://javascript.info/try-catch
+ 4
You are welcome, will
Keep up! 💪
+ 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 :)
+ 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.