Home  >  Article  >  Web Front-end  >  Is JavaScript underlying the C language?

Is JavaScript underlying the C language?

藏色散人
藏色散人Original
2021-11-18 11:33:175227browse

The bottom layer of JavaScript is not the C language. The language design of JavaScript is mainly influenced by the Self programming language and the Scheme programming language; although it has many similarities with the C language in terms of syntax structure, JavaScript and the C language are completely different. of two languages.

Is JavaScript underlying the C language?

The operating environment of this article: windows7 system, javascript version 1.8.5, DELL G3 computer

Is the bottom layer of JavaScript the c language?

The bottom layer of JavaScript is not C language.

JavaScript (often abbreviated to JS) is a high-level, interpreted programming language. JavaScript is a language based on prototypes and first-class functions. It is a multi-paradigm language that supports object-oriented programming, imperative programming, and functional programming. It provides syntax to manipulate text, arrays, dates, regular expressions, etc. It does not support I/O, such as network, storage and graphics, but these can be supported by its host environment. It has been standardized as a language by ECMA (European Computer Manufacturers Association) through ECMAScript. It is used by most websites in the world and is also supported by the world's mainstream browsers (Chrome, IE, Firefox, Safari, Opera).

JavaScript and Java have many similarities in name or syntax, but the two programming languages ​​​​are very different from the beginning of their design. The language design of JavaScript is mainly influenced by Self (a prototype-based programming language) and Scheme (a functional programming language). In terms of grammatical structure, it has many similarities with the C language (such as if conditional statements, switch statements, while loops, do-while loops, etc.).

On the client side, JavaScript has been implemented as an interpreted language in the traditional sense, but more recently, it has been compiled for just-in-time (JIT) execution. With the latest HTML5 and CSS3 language standards, it can also be used for the development of games, desktop and mobile applications and running in server-side network environments such as Node.js.

Generally speaking, complete JavaScript includes the following parts:

ECMAScript, which describes the syntax and basic objects of the language

Document Object Model (DOM), describes the methods and interfaces for processing web content

Browser Object Model (BOM), describes the methods and interfaces for interacting with the browser

JavaScript The basic characteristics are as follows:

is an interpreted scripting language (the code is not precompiled).

Mainly used to add interactive behaviors to HTML pages.

Can be directly embedded into HTML pages, but writing it as a separate js file is beneficial to the separation of structure and behavior.

JavaScript is commonly used to accomplish the following tasks:

Embed dynamic text in HTML pages

Respond to browser events

Read Write HTML elements

Validate data before it is submitted to the server

Detect visitor's browser information

Control cookies, including creation and modification

Recommended study: "javascript basic tutorial"

The above is the detailed content of Is JavaScript underlying the C 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
Previous article:What is javascript nullNext article:What is javascript null