Which best describes JavaScript?

  1. a low-level programming language.

  2. a scripting language precompiled in the browser

  3. a compiled scripting language.

  4. an object-oriented scripting language.


Correct Option: D

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) a low-level programming language - This option is incorrect because JavaScript is not considered a low-level programming language. Low-level programming languages are closer to machine code and are used to write operating systems or system-level programs.

Option B) a scripting language precompiled in the browser - This option is incorrect because JavaScript is not precompiled in the browser. It is interpreted by the browser at runtime.

Option C) a compiled scripting language - This option is incorrect because JavaScript is not a compiled language. It is an interpreted language, meaning that the code is executed line by line at runtime.

Option D) an object-oriented scripting language - This option is correct because JavaScript is an object-oriented scripting language. It supports object-oriented programming concepts like encapsulation, inheritance, and polymorphism.

The correct answer is D) an object-oriented scripting language. This option is correct because JavaScript is widely used as a scripting language for web development and it follows the principles of object-oriented programming.

Find more quizzes: