employer cover photo
employer logo
employer logo

Quovantis Technologies

Est-ce votre entreprise ?

Question d’entretien chez Quovantis Technologies

Q: So, do you know about object oriented javascript?

Réponse à la question d'entretien

Utilisateur anonyme

27 janv. 2017

I told that Javascript is an object based language. Technically speaking (ECMAScript2015) does not have a concept of class, we create objects from a Constructor using the new keyword. I told him of an eg from w3schools function Person(firstName, lastName, age){this.firstName=firstName;this.lastName = lastName;}; var person1 = new Person("John", "Doe", 40); ....all the way upto using prototype property of javascript to add a property/function to Person. He looked satisfied.