Objective

Create a program that takes in two integers and outputs their sum onto the HTML document.

Difficulty

Very easy

Description

In this exercise, you have to create a program that asks the user to input two integers, one-by-one, and then outputs their sum.

Each of these inputs is to be obtained using a prompt dialog.

The first input prompt should display the following text: 'a = ?'. The second input prompt should display 'b = ?'

The output should be as follows:

The sum is: <sum>

where <sum> is the sum of the input integers.

In the actual output, you have to show the sum of the input values in place of <sum>. The reason to use <sum> is just to give the general form of the output.

Shown below is an example:

Live Example