JS Coding Questions Logo
JS Coding Questions
#299💼 Interview💻 Code

Why do we call javascript as dynamic language

Advertisement

728x90

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
1let age = 50; // age is a number now
2
3age = "old"; // age is a string now
4
5age = true; // age is a boolean

Advertisement

Responsive Ad
🎯 Practice NowRelated Challenge

JavaScript Coding Exercise 43

Test your knowledge with this interactive coding challenge.

Start Coding

Advertisement

728x90
299of476