1.

JavaScript can be written __________(a) directly into JS file and included into HTML(b) directly on the server page(c) directly into HTML pages(d) directly into the css fileThe question was asked during an online exam.This question is from Lexical Structure in section Lexical Structures of JavaScript

Answer»

The CORRECT answer is (a) directly into JS file and included into HTML

The BEST I can explain: JavaScript files can be saved by .JS EXTENSION and can be included in the HTML files. SCRIPT tag along with src attribute is used to include the js files.



Discussion

No Comment Found

Related InterviewSolutions