Q. JavaScript is a _______________ language

  • (A) Object-Based
  • (B) Assembly-language
  • (C) High-level
  • (D) Object-Oriented
πŸ’¬ Discuss
βœ… Correct Answer: (A) Object-Based
Explanation:

JavaScript is Object-Based rather than fully Object-Oriented because:

Object-Based Language

  • JavaScript uses objects extensively but does not support features like class-based inheritance (before ES6 introduced class syntax).
  • It follows prototype-based inheritance rather than classical OOP (Object-Oriented Programming).

Why Not Other Options?

  • (B) Assembly-language β†’ ❌ Incorrect, because JavaScript is a high-level language, not low-level like Assembly.
  • (C) High-level β†’ βœ… JavaScript is a high-level language, but the most precise classification is "Object-Based."
  • (D) Object-Oriented β†’ ❌ JavaScript does have OOP features (like objects and prototypes), but it lacks true class-based OOP principles like Java or C++.

Thus, JavaScript is primarily "Object-Based" because it uses objects but not full OOP features.

Explanation by: Mr. Dubey

JavaScript is Object-Based rather than fully Object-Oriented because:

Object-Based Language

  • JavaScript uses objects extensively but does not support features like class-based inheritance (before ES6 introduced class syntax).
  • It follows prototype-based inheritance rather than classical OOP (Object-Oriented Programming).

Why Not Other Options?

  • (B) Assembly-language β†’ ❌ Incorrect, because JavaScript is a high-level language, not low-level like Assembly.
  • (C) High-level β†’ βœ… JavaScript is a high-level language, but the most precise classification is "Object-Based."
  • (D) Object-Oriented β†’ ❌ JavaScript does have OOP features (like objects and prototypes), but it lacks true class-based OOP principles like Java or C++.

Thus, JavaScript is primarily "Object-Based" because it uses objects but not full OOP features.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
212
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Kirti
Publisher
πŸ“ˆ
83%
Success Rate