0

I can't solve this any one can?

Code to convert the value into a number JS let form = document.getElementById('form'); let currency = form.elements.currency.value; (currency);

30th Sep 2024, 12:59 PM
Sher Agha Hewadmal
1 Answer
+ 3
Use the Number() function to convert it const form = document.getElementById('form'), currency = form.elements.currency; // add 10 to the value console.log(Number(currency.value) + 10);
30th Sep 2024, 3:40 PM
SoloProg
SoloProg - avatar