JavaScript Program to Display Alert Message

Write a JavaScript program to display alert message.



Source Code
<!doctype html>
<html>

<head>
    <title>window.alert()</title>
</head>

<body>

    <script>
        window.alert("Hello World!")
    </script>

</body>

</html>
Output





"Coding Hub - Learn to code" app now available on Google Play Store