Wriet a JavaScript Program to Add Two Numbers

wriet a JavaScript program to add two numbers



Source Code
<html>
<head>
    <title>Sum of two numbers</title>
</head>
<body>
    <script>
        var a = 23;
        var b = 37;
        var sum = a + b;
        document.write("<br>Value of a = " + a);
        document.write("<br>Value of b = " + b);
        document.write("<br>Addition of a & b = " + sum);
    </script>
</body>
</html>
Output