Which of the following statements about JavaScript is FALSE?

2022

Which of the following statements about JavaScript is FALSE?

  1. A.

    JavaScript cannot change HTML styles (CSS).

  2. B.

    JavaScript can change HTML attribute values.

  3. C.

    JavaScript can hide HTML elements.

  4. D.

    JavaScript can show HTML elements.

Attempted by 85 students.

Show answer & explanation

Correct answer: A

JavaScript can dynamically modify HTML element styles using the DOM API. Since Option 0 claims JavaScript cannot change styles, this statement is false and correctly answers the question.

Explore the full course: Up Lt Grade Assistant Teacher 2025