Dynamic Typing
noun
say it: “dy-NAM-ik TYPE-ing” /daɪˈnæmɪk ˈtaɪpɪŋ/
Variables not having a fixed type, so one variable can hold a number now and text later.
What is Dynamic Typing?
Dynamic Typing — Values have types but variables don't, so one variable can hold a number now and text later, and type mistakes show up only when that line runs. JavaScript and Python are dynamically typed.
let pages = 412;
pages = "many"; // allowed
console.log(typeof pages); // string
In a sentence
- “With dynamic typing, JavaScript let pages hold 412 and then "many".”
Level: Apprentice · More Software Development terms at this level
Updated