Consider the following statements respect to JavaScript : (I) A variable is created using the keyword.
Consider the following statements respect to JavaScript :
(I) A variable is created using the keyword.
(II) JavaScript is untyped language.
Which of the above are true ?
Show answerHide answer
Correct answer: (D) Both (I) and (II)
Explanation
Both statements are true as intended: in JavaScript a variable is created with the var keyword (the word is missing from the question), and JavaScript is loosely (dynamically) typed, so variables have no fixed type.