Which of the following statements about JavaScript is FALSE?
2022
Which of the following statements about JavaScript is FALSE?
- A.
JavaScript cannot change HTML styles (CSS).
- B.
JavaScript can change HTML attribute values.
- C.
JavaScript can hide HTML elements.
- 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.