1.

The type of a variable that is volatile is _______________(a) Volatile variable(b) Mutable variable(c) Immutable variable(d) Dynamic variableI have been asked this question in a job interview.The doubt is from Types, Values and Variables in section Lexical Structures of JavaScript

Answer»

The correct option is (B) Mutable VARIABLE

To explain: The VARIABLES WHOSE values can be changed are called mutable variable types. In JavaScript, only objects and ARRAYS are mutable, not primitive values.



Discussion

No Comment Found

Related InterviewSolutions