Start learning →
Home › Olympiad (Class 11) › Computer Science › Programming Languages › In JavaScript one variable holds a number, then …

In JavaScript one variable holds a number, then later a text string. JavaScript is:

AWeakly typed
BStrongly typed
CStrictly typed
DSteadily typed
Answer & Solution
Correct answer: A. Weakly typed
1. Some languages lock a variable to one data type. 2. JavaScript lets the same variable hold any type. 3. So JavaScript is weakly typed. _Source: OpenStax Introduction to Computer Science, Chapter 7, High-Level Programming Languages._
Practise this question with Quill — Olympiad (Class 11) →
Related questions