Skip to main content
InterviewHubPRO
Section Overview
Q303

Question 303 of 536

Part 5: ES6+ Modern Syntax, Classes, Modules & Destructuring (254 - 328)

57%
JavaScript & V8 Internals (536 Qs)•Part 5: ES6+ Modern Syntax, Classes, Modules & Destructuring (254 - 328)

Why do we call javascript as dynamic language

mid LevelCode ExamplejavascriptES6+ Modern Syntax

JavaScript is a loosely typed or a dynamic language because variables in JavaScript are not directly associated with any particular value type, and any variable can be assigned/reassigned with values of all types.

javascript
  let age = 50; // age is a number now
  age = "old"; // age is a string now
  age = true; // age is a boolean