+ 1

Help

Can anyone help mein in one question of web development

2nd Oct 2025, 2:36 PM
Md Rihan
Md Rihan - avatar
11 Réponses
+ 3
Code to convert the value into a number let form = document.getElementById('form'); let currency = form.elements.currency.value; [. ](currency);
2nd Oct 2025, 3:32 PM
Md Rihan
Md Rihan - avatar
+ 3
You can use Number(currency)
2nd Oct 2025, 4:08 PM
ᴜɴᴋɴᴏᴡɴ ᴅᴇᴄᴏᴅᴇʀ
ᴜɴᴋɴᴏᴡɴ ᴅᴇᴄᴏᴅᴇʀ - avatar
+ 1
Md Rihan please clarify what type of help you need ... show your code by using the insert circle with the plus. Then describe the issue you are having or the error you see.
2nd Oct 2025, 2:51 PM
BroFar
BroFar - avatar
+ 1
What will be correct answer of this box
2nd Oct 2025, 3:33 PM
Md Rihan
Md Rihan - avatar
+ 1
Number also wrong
2nd Oct 2025, 7:34 PM
Md Rihan
Md Rihan - avatar
+ 1
Number(currency) is correct if currency is a valid numeric string. If it’s not working maybe the form field value is empty or not being read properly. You can also try: parseInt(currency); // if you want an integer parseFloat(currency); // if you want a decimal
3rd Oct 2025, 3:27 AM
Riyadh JS
Riyadh JS - avatar
0
Then parseInt() should work
3rd Oct 2025, 3:27 AM
ᴜɴᴋɴᴏᴡɴ ᴅᴇᴄᴏᴅᴇʀ
ᴜɴᴋɴᴏᴡɴ ᴅᴇᴄᴏᴅᴇʀ - avatar
0
Hello
3rd Oct 2025, 7:48 AM
Yaswanth Chandaka
Yaswanth Chandaka - avatar
0
How upload
3rd Oct 2025, 1:39 PM
Felmeta Gemedi
Felmeta Gemedi - avatar
0
Web development is the process of creating and maintaining websites and web applications, involving the design, coding, testing, and maintenance of sites to ensure they function effectively in browsers. This encompasses visual aspects (front-end), server-side functionality (back-end), database management, and optimization for speed and security. Tools such as HTML, CSS, JavaScript, and various frameworks are used to build interactive elements and maintain optimal site performance.
8th Oct 2025, 1:02 AM
DHIMAN
DHIMAN - avatar
0
I am still learning I will help you when I learn
12th Oct 2025, 4:51 PM
Hassan Mohammed Ibraahim
Hassan Mohammed Ibraahim - avatar