Is ecmascript a language?

青灯夜游
Release: 2022-01-28 11:14:25
Original
1266 people have browsed it

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!

Related labels:
source:php.cn
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!