1.

JavaScript is a _______________ language.(a) Object-Oriented(b) High-level(c) Assembly-language(d) Object-BasedThis question was addressed to me in an internship interview.I want to ask this question from Statements topic in chapter Lexical Structures of JavaScript

Answer»

The correct CHOICE is (d) Object-Based

Easiest explanation: JavaScript is not a full-blown OOP (Object-Oriented PROGRAMMING) language, such as JAVA or PHP, but it is an object-based language. The criteria for object orientation are the classic threesome of polymorphism, encapsulation and INHERITANCE and JavaScript doesn’t PASS this.



Discussion

No Comment Found

Related InterviewSolutions