Example
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> <p id="result"></p> <button onclick="myFunction()">Run</button> <script> function myFunction() { var x = undefined; var content = "Number : " + Number(x) + "<br>"; content += "String : " + String(x) + "<br>"; content += "Boolean: " + Boolean(x); document.getElementById("result").innerHTML = content; } </script> </body> </html>
PHÓNG TO