+ 1
Help
Can anyone help mein in one question of web development
11 Respuestas
+ 3
Code to convert the value into a number
let form = document.getElementById('form');
let currency = form.elements.currency.value;
[. ](currency);
+ 3
You can use Number(currency)
+ 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.
+ 1
What will be correct answer of this box
+ 1
Number also wrong
+ 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
0
Then parseInt() should work
0
Hello
0
How upload
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.
0
I am still learning I will help you when I learn