How do you display an element by id in JavaScript?

How do you display an element by id in JavaScript?

From the BIWTA Assistant Programmer November 2022 – Written exam, question 3 of 7.

More from this paper