Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <body> <p>Klicken Sie auf den Button, um den String zu parsen.</p> <button onclick="myFunction()">Click</button> <p id="demo"></p> <script> function myFunction() { var myString = Number("384.75")+"<br>"; var Num = myString + "<br>" ; document.getElementById("demo").innerHTML = Num; } </script> </body> </html>