Home Web Front-end Front-end Q&A Is ecmascript a language?

Is ecmascript a language?

Jan 28, 2022 am 11:14 AM
ecmascript

ecmascript is a language. ecmascript is an object-based programming language that can perform calculations in a host environment and operate computational objects. It can be used to support the dynamic performance of Web pages and provide server-side computing capabilities for Web-based "client-server" architectures. .

Is ecmascript a language?

The operating environment of this tutorial: Windows 7 system, ECMAScript version 6, Dell G3 computer.

ecmascript is a language.

ECMAScript is a standardized specification for a scripting language developed by Brendan Edge of Netscape; originally named Mocha, later renamed LiveScript, and finally renamed JavaScript. In December 1995, Sun and Netscape jointly released JavaScript. In November 1996, Netscape submitted JavaScript to the European Computer Manufacturers Association for standardization. The first version of ECMA-262 was adopted by the Ecma organization in June 1997. ECMA Script is the name of the ECMA-262 standardized scripting language. Although JavaScript and JScript are compatible with ECMAScript, they contain functionality beyond ECMAScript.

ECMAScript is an object-based programming language that can perform calculations in a host environment and manipulate computable objects. ECMAScript was first designed as a Web scripting language to support the dynamic presentation of Web pages and provide server-side computing capabilities for Web-based client-server architectures. But as a scripting language, ECMAScript has the same nature as other scripting languages, that is, "used to manipulate, customize, and automate the functions provided by an existing system."

Features of ECMAScript:

The language features of ECMAScript have many similarities with Java, C, and Perl, and many of them are borrowed from these languages. Come.

Like Java, ECMAScript is case-sensitive, the format of comments is the same, the code block is determined by {}, the original data type is stored on the stack, and the reference to the object is stored in the heap.

ECMAScript is a loose language. ECMAScript declares variables through the var operator, and the type is not limited. For example, var n = 25, then n is a numeric type, var n = "string", then n is the String type.

You don’t need to write a semicolon after each line of code. ECMAScript automatically considers the end of the line to be the end of the line of code. Variables in ECMAScript do not need to be initialized, and the system will automatically complete the initialization operation behind the scenes.

The same variable can be assigned different types of data; the first character of a variable can only be a letter, underscore, or $, and other characters can be underscore, $ , or any letters, numbers, or characters.

Like other languages, variables are best written in camel case, Pascal notation, or Hungarian notation.

Different from most languages, ECMAScript variables do not need to be declared before use. The system will automatically declare the variable as a global variable. For example,

var m = " Good " ; 
n = m + " Morning " ; 
alert(n)
Copy after login

The output structure is

Good Morning
Copy after login

In most languages, String is an object, but in ECMAScript it is a primitive data type.

[Related recommendations: javascript learning tutorial]

The above is the detailed content of Is ecmascript a language?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
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

Hot Article

Hot Article

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain the concept of lazy loading. Explain the concept of lazy loading. Mar 13, 2025 pm 07:47 PM

Explain the concept of lazy loading.

How does the React reconciliation algorithm work? How does the React reconciliation algorithm work? Mar 18, 2025 pm 01:58 PM

How does the React reconciliation algorithm work?

What is useEffect? How do you use it to perform side effects? What is useEffect? How do you use it to perform side effects? Mar 19, 2025 pm 03:58 PM

What is useEffect? How do you use it to perform side effects?

How does currying work in JavaScript, and what are its benefits? How does currying work in JavaScript, and what are its benefits? Mar 18, 2025 pm 01:45 PM

How does currying work in JavaScript, and what are its benefits?

What are higher-order functions in JavaScript, and how can they be used to write more concise and reusable code? What are higher-order functions in JavaScript, and how can they be used to write more concise and reusable code? Mar 18, 2025 pm 01:44 PM

What are higher-order functions in JavaScript, and how can they be used to write more concise and reusable code?

Explain the purpose of each lifecycle method and its use case. Explain the purpose of each lifecycle method and its use case. Mar 19, 2025 pm 01:46 PM

Explain the purpose of each lifecycle method and its use case.

What are React's performance optimization techniques (memoization, code splitting, lazy loading)? What are React's performance optimization techniques (memoization, code splitting, lazy loading)? Mar 18, 2025 pm 01:57 PM

What are React's performance optimization techniques (memoization, code splitting, lazy loading)?

What is useContext? How do you use it to share state between components? What is useContext? How do you use it to share state between components? Mar 19, 2025 pm 03:59 PM

What is useContext? How do you use it to share state between components?

See all articles