Vidyalelo
JavaScript · Q4

Classes And Modules

Programming · JavaScript · question 4

Q4

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 fields
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The basic difference between JavaScript and Java is that the functions are values, and there is no hard distinction between methods and fields.