+ 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
5 Answers
+ 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 ?
+ 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.
0
What will be the answer?
0
I entered console.log,number, parsefloat,parseint everything is showing wrong
Give me the right answer