Home >Web Front-end >Front-end Q&A >Is javascript a static language?
Javascript is not a static language, it is a dynamic scripting language based on prototype programming and multi-paradigm; while a static language is a language with fixed running results, such as static page code written in HTML.
The operating environment of this article: Windows 7 system, javascript version 1.8.5, DELL G3 computer
Is javascript a static language?
Javascript is not a static language.
JavaScript ("JS" for short) is a lightweight, interpreted or just-in-time compiled programming language with function priority. Although it is famous as a scripting language for developing Web pages, it is also used in many non-browser environments. JavaScript is based on prototype programming, a multi-paradigm dynamic scripting language, and supports object-oriented, imperative, declarative, and functional programming paradigm.
Dynamic languages are a category of high-level programming languages that have been widely used in the field of computer science. It is a language whose structure can be changed at runtime: for example, new functions, objects, and even code can be introduced, existing functions can be deleted, or other structural changes can occur. Dynamic languages are very dynamic right now. The well-known ECMAScript (JavaScript) is a dynamic language. In addition, PHP, Ruby, Python, etc. are also dynamic languages, while languages such as C, C, and Java are not dynamic languages.
Most dynamic languages use dynamic typing, but some do not.
Static language is a language with fixed running results. A typical example is the static page code written in HTML. For example, when creating a table, the number of rows and columns in the table cannot be changed in the HTML language. adjusted.
Recommended study: "js basic tutorial"
The above is the detailed content of Is javascript a static language?. For more information, please follow other related articles on the PHP Chinese website!