1,HTML source code£º <html> <head> <title>How to use Float</title> </head> <body> <script src="jsjava.js"></script> <script> var f=Float.checkValid("sdfds"); document.write(f+"<br>"); var f2=Float.isInfinite(Math.pow(2,3000)); document.write(f2+"<br>"); try{ var f3=Float.parseFloat("565465464564seee56"); }catch(e){ document.write(e.message); } </script> </body> </html> 2,The display:

false
true
Not a number Exception!