Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 731 Bytes

why_do_we_call_javascript_as_dynamic_language.md

File metadata and controls

16 lines (10 loc) · 731 Bytes

Why do we call JavaScript a dynamic language?

JavaScript is considered a dynamic language because it supports dynamic typing, meaning that variables do not have a fixed type. You can assign any type of value to a variable at runtime, and it can change its type during execution.

Example:

let dynamicVar = 10;  // Number
dynamicVar = 'Hello';  // String

Tags: basic, JavaScript, Language features

URL: https://www.tiktok.com/@jsmentoring/photo/7468752457196162337