Alert Box tutorial in JavaScript

 <!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Alert Box</title>
    <script>
        alert("Hello Everybody");
        var a = 10;
        var b = 20;
        if (a > b) {
            alert("Value of A is : " + a + ", A is Greater");
        }
        else {
            alert("Value of B is : " + b + ", B is Greater");
        }
    </script>
</head>

<body>
</body>

</html>


Comments

Popular posts from this blog

Symbols tutorial in Advance JavaScript

Async and Await Method tutorial in Advance JavaScript

String Methods in JavaScript