Operational Procedures

A technician sees a file named validate.js on a web server. Which scripting language does it contain?

Show the answer

Correct answerB. JavaScript

AWhy not this: Java is a separate language and does not use the .js extension.

BWhy this is right: The .js extension identifies JavaScript code, which is widely used on web pages.

CWhy not this: Python script files use the .py extension, not .js.

DWhy not this: VBScript files use the .vbs extension, not .js.

The .js extension identifies JavaScript, a scripting language commonly used to add behavior to web pages. Java is a different, compiled language with its own extensions, so the similar name misleads.