JSFiddle - React, Tailwind, and code Playground

by ryanallenbobcat

HTML

<html>
    <head>
        <script type="text/javascript">
            
            var name = prompt("Welcome! Please enter your name in the text field.", "");
            var num1 = parseInt(prompt("Hello, " +name +"." +" Enter your first number", ""));
            var num2 = parseInt(prompt("Now enter your second number", ""));
            
            var result = num1 + num2;
            
            document.write("Hello, "+name +". Here is a simple addition script, written in Javascript<br />");
            document.write(num1 +" + " +num2 +" = " +result);
        </script>
    </head>
    <body>
    </body>
</html>