0
Can u help me solve this coding part
let form = document.getElementById('form'); let currency = form.elements.currency.value; _____(currency); can u please help me this to solve it
7 Respuestas
+ 4
If `parseFloat` doesn't work, then it's answer might be `parseInt` or `Number`.
0
Can you plz provide the entire question?
0
THIS WAS THE QUESTION
Code to convert the value into a number
let form = document.getElementById('form');
let currency = form.elements.currency.value;
_____(currency);
I used parseFloat also it didn't worked
0
let form = document.getElementById('form');
let currency = form.elements.currency.value;
0
let form = document.getElementById('form');
let currency = form.elements.currency.value;
JS
(currency);
0
code to convert the value into an number
let form = document.getElementById('form');
let currency = form.elements.currency.value;
_____(currency);
0
Code to convert the value into a number
let form = document.getElementById('form');
let currency = form.elements.currency.value;
Number(currency); <====== OK