1.

The basic difference between JavaScript and Java is _________(a) There is no difference(b) Functions are considered as fields(c) Variables are specific(d) Functions are values, and there is no hard distinction between methods and fieldsI have been asked this question by my school principal while I was bunking the class.This intriguing question originated from Classes in JavaScript topic in section Classes and Modules in JavaScript of JavaScript

Answer»

The correct answer is (d) Functions are values, and there is no hard DISTINCTION between methods and fields

Easiest explanation: JAVA is an OOP programming language while JavaScript is an OOP scripting language. The BASIC DIFFERENCE between JavaScript and Java is that the functions are values, and there is no hard distinction between methods and fields.



Discussion

No Comment Found

Related InterviewSolutions