The main difference between the variables declared with var and with let is
A. var is confined to a particular function but let is not
B. let is confined to a particular function but var is not
C. var defines values based on conditions but let does not
D. none of the mentioned
Answer: Option B
Solution(By Examveda Team)
Variables declared with var are defined throughout the enclosing function. Variables declared with let are defined only within the closest enclosing block (and any blocks nested within it, of course).The behaviour of the instances present of a class inside a method is defined by
A. Method
B. Classes
C. Interfaces
D. Classes and Interfaces
The keyword or the property that you use to refer to an object through which they were invoked is
A. from
B. to
C. this
D. object
Consider the following code snippet :
var o = new F();
o.constructor === F
A. false
B. true
C. 0
D. 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 fields
Join The Discussion