Ví dụ
RUN
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <h1>Học lập trình miễn phí tại freetuts.net</h1> <button onclick="myFunction()">Run</button> <p id="demo"></p> <script> function myFunction() { var content = ' 4 - ' + isFinite(4) + '<br>'; content = content + ' Hello - ' + isFinite('Hello') + '<br>'; content = content + ' -5 - ' + isFinite(- 5) + '<br>'; content = content + ' infinity - ' + isFinite(Infinity) + '<br>'; document.getElementById("demo").innerHTML = content; } </script> </body> </html>
PHÓNG TO