helloWorld.html
<!DOCTYPE html> <html> <head> <title>Hello world</title> </head> <body> <script type="text/javascript"> document.write("Hello World"); </script> </body> </html>
document.write("Hello
World");
Above
statement gives instruction to the browser to write "Hello World". Java Script is embedded between <script></script> tags.
No comments:
Post a Comment