Recently I attended an interview where I was following question on javaScript
Q: is it object based or object oriented programming Me :Object based , as there is no class and the first thing we create is an object to create other objects from it.
Q : Is it a scripting language or programming language? Me: programming language(Q: Then why there is script in the name Me: Not sure)
Q: What object oriented features are there in it? Me : Encapsulation and Inheritance (Q: Not polymorphism ? Me : No Q : but everything in javascript is late binding so why do you say it is not polymorphism is not there ME: Blank)
I had got theses answers from different tutorials online but but looks like he wasn't convinced with my answers . I did google them before posting a question over here, but still am confused as some sites say as my answers and some opposite to mine.
Could someone please help me clear my doubts ?