Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Multi-line Comments in JavaScript</title> </head> <body> <script> /* The function below display an alert dialog with "Hello World!" message */ function helloWorld(){ alert("Hello World!"); } window.onload = helloWorld(); </script> </body> </html>