This is how you would display “Hello World” to the browser in Javascript.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<!DOCTYPE HTML> <html> <body> <p>Header...</p> <script> alert('Hello, World!') </script> <p>...Footer</p> </body> </html> |