Exit WGU-KVO1 WGU Web Development Applications (KVO1)
Question 4 of 5
0% complete
Q4 Single choice

Given the following JavaScript code:

var x;

x = 6;

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

What happens when this code is executed?

  • A

    The object with the id demo is changed to x.

  • B

    The object with the id innerHTML is changed to 6.

  • C

    The object with the demo is changed to 6.

  • D

    The object with the id innerHTML is changed to x.