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);
1 Réponse
+ 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);