Home »
MCQs »
JavaScript MCQs
JavaScript code can be written in ____
5. JavaScript code can be written in ____.
- JavaScript file (.js file)
- HTML document directly
- JavaScript file and in HTML document directly
- In style sheets (.css file)
Answer: C) JavaScript file and in HTML document directly
Explanation:
JavaScript code can be written in the JavaScript file and in HTML document directly.