What does it mean that JavaScript is “dynamic”?

前端 未结 2 971
执念已碎
执念已碎 2021-02-04 00:49

I\'ve read from different sources (e.g. wiki, articles, etc.) what dynamic in a programming sense means. Wikipedia talks about how dynamic programming languages execute certain

2条回答
  •  悲哀的现实
    2021-02-04 01:02

    The most meaningful well-defined way in which JS is dynamic is that it's dynamically typed: the language has data types, but does not check that a program's types are "okay" until the program is actually running. The opposite is statically typed, meaning that programs' types are verified by a program that inspects their source code before they are run. (E.g., Java and ML are statically typed.)

提交回复
热议问题