- A 0.0123
- B 12300
- C Error
- D Undefined
- Share this MCQ
Answer:
B
Share this MCQ
This script defines a variable x
and assigns it the value 123e5
, which is equivalent to 123 * 10^5
, or 1230000.
Then, it selects the element with the ID "demo
" and changes its inner HTML to the value of x. The result would be that the element with the ID "demo" displays the text "1230000
".
Share this MCQ