rickylowri
New Coder
I'm having a JavaScript problem, please help me.
<
let subTotalPrice = prompt("How much is your sub total?");
let subTotal = fruitAmount1 * fruitAmount2;
subTotal = parseFloat(subTotal);
console.log("What is the subtotal of your fruit? " + subTotal);
/>
I am only getting NAN for an answer how do I fix this to answer with numbers from users? Please Help!
<
let subTotalPrice = prompt("How much is your sub total?");
let subTotal = fruitAmount1 * fruitAmount2;
subTotal = parseFloat(subTotal);
console.log("What is the subtotal of your fruit? " + subTotal);
/>
I am only getting NAN for an answer how do I fix this to answer with numbers from users? Please Help!
Last edited: