Home  >  Article  >  Web Front-end  >  Is javascript a static language?

Is javascript a static language?

藏色散人
藏色散人Original
2022-01-19 16:31:453434browse

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.

Is javascript a static language?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn