+ 1

Code to convert a value into a number

Let form=document.getelementbyId('form'); Let currency = form.elements.currency.value; ____('currency'); What will come on the fill in the blank Even chatgpt and others can't give right answer of this question

24th Apr 2025, 5:09 PM
Suryansh Thakar
Suryansh Thakar - avatar
5 Respuestas
+ 4
Suryansh Thakar , ok - we can identify the tutorial you are working on. > but the tutorials contain several modules which in turn contain several lessons and exercises. so it is not easy to figure out where exactly you get stuck. > can you support us with the missing details ?
24th Apr 2025, 7:27 PM
Lothar
Lothar - avatar
+ 3
Suryansh Thakar Yeah those single quotes shouldn't be there around currency in line 3. parseInt(currency) Or parseFloat(currency) Is what you're looking for most probably.
25th Apr 2025, 2:26 AM
Morpheus
Morpheus - avatar
0
What will be the answer?
24th Apr 2025, 7:20 PM
Suryansh Thakar
Suryansh Thakar - avatar
0
I entered console.log,number, parsefloat,parseint everything is showing wrong Give me the right answer
24th Apr 2025, 7:24 PM
Suryansh Thakar
Suryansh Thakar - avatar