79081082

Date: 2024-10-12 13:27:43
Score: 2
Natty:
Report link

JavaScript input value will return string if you do var x = document.getElementById('demo').value; document.write(typeof(x));

will return string, to convert the value of x to number parseFloat(x); document.write(typeof(x)); This will return Number.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Opeyemi Wasiu