225k views
5 votes
Please help me with this I'm struggling with this :(

Please help me with this I'm struggling with this :(-example-1
User Epalm
by
4.3k points

1 Answer

1 vote

Answer:

The complete source file is as follows:

var x = 5;

var y = 10;

document.getElementById("demo").innerHTML=x+y;

Step-by-step explanation:

On the second line of the program, y is declared and initialized to 10.

So, the first line must initialize x to 5.

So, we have:

var x = 5;

Next, complete the third line with the sum of x and y; i.e. x + y.

So, we have:

document.getElementById("demo").innerHTML=x+y;

User Jkally
by
4.5k points