Consider the following statements with reference to JavaScript. It can bring…
2026
Consider the following statements with reference to JavaScript.
It can bring dynamic features to HTML page.
It is used for form validation in web page.
Select the correct answer from the code given below.
- A.
Only 2
- B.
Neither 1 nor 2
- C.
Both 1 and 2
- D.
Only 1
Attempted by 76 students.
Show answer & explanation
Correct answer: C
JavaScript is widely used to add dynamic features to HTML pages, such as manipulating the DOM and handling events. It is also commonly employed for client-side form validation to check user input before submission. Since both statements accurately describe core functionalities of JavaScript, the correct answer is 'Both 1 and 2'.