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 booleanAdvertisement
Responsive Ad
🎯 Practice NowRelated Challenge
JavaScript Coding Exercise 43
Test your knowledge with this interactive coding challenge.
Start CodingAdvertisement
728x90
299of476