Home Web Front-end JS Tutorial An explanation of JavaScript itself

An explanation of JavaScript itself

Jul 24, 2017 pm 02:24 PM
javascript js what is

JavaScript is an interpreted language rather than a compiled language. It is often considered a scripting language rather than a real programming language. That is, scripting languages ​​are simpler, they are programming languages ​​used by non-programmers.

If a programmer does not have a solid understanding of JavaScript, he will find the whole process difficult when he wants to use JavaScript to perform more complex tasks.

According to the ECMA-262 standard, the official name of the JavaScript language is ECMAScript. However, this unwieldy name is only officially used when the standard is explicitly referenced. Technically, the name "JavaScript" refers only to the implementation of the language from Netscape and the Mozilla Foundation. In fact, everyone calls this language JavaScript.

Client-side JavaScript combines the scripting capabilities of the JavaScript interpreter with the Document Object Model (Dom) defined by the web browser.

JavaScript can not only control the content of HTML documents, but also the behavior of these documents.

JavaScript is a general-purpose programming language, and its uses are not limited to web browsers. JavaScript is designed to be embedded into any other application and provide scripting capabilities to the application.

If you need to truly learn a new programming language, you must use it to write programs.

For simple JavaScript experiments, it is sometimes possible to use the JavaScript:URL pseudo-protocol to evaluate a JavaScript expression and return the evaluation result. A JavaScript URL is composed of JavaScript: protocol specifier plus arbitrary JavaScript code (separated by semicolons between statements). When a browser loads such a URL, it will execute the JavaScript code contained within it. The value of the last expression in such a URL will be converted into characters, and the string will be displayed in the web browser as a new document.

The lexical structure of a programming language is a set of basic rules that detail how to write programs in the language. It is the lowest level syntax of a language, specifying rules such as what variable names should look like, what characters should be used for comments, and how statements should be separated.

JavaScript programs are written using the Unicode character set. The 16-bit Unicode encoding can represent every written language commonly spoken on earth. This is an important feature of internationalization, especially for programmers who do not speak English.

JavaScript is a case-sensitive language.

These tag and attribute names can be entered in any case in HTML, but in JavaScript they are usually lowercase.

Direct quantity is the data value directly displayed in the program.

Identifier is a name, which is used to name variables and functions, or used as a label for certain loops in JavaScript code. The first character must be a letter, underscore, or dollar sign. An identifier cannot have the same name as a keyword used for other purposes in JavaScript.

Reserved words, break, do, if, switch, typeof, case, else, in, this, var, catch, false, instanceof, throw, void, continue, finally, new, true, while, default , for, null, try, with, delete, function, return.

In a programming language, the type of value that can be represented and manipulated is called a data type, and one of the most basic features of a programming language is the set of data types it supports. JavaScript allows the use of 3 basic data types - numbers, text strings and Boolean values. There are also two small data types, null (empty) and undefined (undefined), each of which defines a value.

JavaScript also supports consistent data types - objects. There are two types of objects in JavaScript. One object represents an unordered collection of named values, and the other represents an ordered collection of numbered values. The latter is called an array.

Special object——Function. A function is an object with executable code that can be used as a calling function to perform some action. Functions behave differently from other types of objects.

The difference between Javascript and other programming languages ​​​​is that it does not distinguish between integer values ​​and floating point values. All numbers in JavaScript are represented by floating point types. JavaScript number format allows exact representation of all integers between -9007199254740992 (-2^53) and 9007199254740992 (2^53), but using integers beyond this range, you lose mantissa precision.

Escape sequence, in JavaScript strings, the backslash (\) has a special purpose. Adding a character after the backslash symbol can represent characters that cannot appear in the string.

The above is the detailed content of An explanation of JavaScript itself. 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 AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

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)

What kind of process is ccsvchst.exe? What kind of process is ccsvchst.exe? Feb 19, 2024 pm 11:33 PM

ccsvchst.exe is a common process file that is part of the Symantec Endpoint Protection (SEP) software, and SEP is an endpoint protection solution developed by the well-known network security company Symantec. As part of the software, ccsvchst.exe is responsible for managing and monitoring SEP-related processes. First, let’s take a look at SymantecEndpointProtection(

Recommended: Excellent JS open source face detection and recognition project Recommended: Excellent JS open source face detection and recognition project Apr 03, 2024 am 11:55 AM

Face detection and recognition technology is already a relatively mature and widely used technology. Currently, the most widely used Internet application language is JS. Implementing face detection and recognition on the Web front-end has advantages and disadvantages compared to back-end face recognition. Advantages include reducing network interaction and real-time recognition, which greatly shortens user waiting time and improves user experience; disadvantages include: being limited by model size, the accuracy is also limited. How to use js to implement face detection on the web? In order to implement face recognition on the Web, you need to be familiar with related programming languages ​​and technologies, such as JavaScript, HTML, CSS, WebRTC, etc. At the same time, you also need to master relevant computer vision and artificial intelligence technologies. It is worth noting that due to the design of the Web side

Essential tools for stock analysis: Learn the steps to draw candle charts with PHP and JS Essential tools for stock analysis: Learn the steps to draw candle charts with PHP and JS Dec 17, 2023 pm 06:55 PM

Essential tools for stock analysis: Learn the steps to draw candle charts in PHP and JS. Specific code examples are required. With the rapid development of the Internet and technology, stock trading has become one of the important ways for many investors. Stock analysis is an important part of investor decision-making, and candle charts are widely used in technical analysis. Learning how to draw candle charts using PHP and JS will provide investors with more intuitive information to help them make better decisions. A candlestick chart is a technical chart that displays stock prices in the form of candlesticks. It shows the stock price

WebSocket and JavaScript: key technologies for implementing real-time monitoring systems WebSocket and JavaScript: key technologies for implementing real-time monitoring systems Dec 17, 2023 pm 05:30 PM

WebSocket and JavaScript: Key technologies for realizing real-time monitoring systems Introduction: With the rapid development of Internet technology, real-time monitoring systems have been widely used in various fields. One of the key technologies to achieve real-time monitoring is the combination of WebSocket and JavaScript. This article will introduce the application of WebSocket and JavaScript in real-time monitoring systems, give code examples, and explain their implementation principles in detail. 1. WebSocket technology

What is a dual-core browser? What is a dual-core browser? Feb 20, 2024 am 08:22 AM

Dual-core browser is a browser software that integrates two different browser cores. The kernel is the core part of the browser, responsible for rendering web content and executing web scripts and other functions. Traditional browsers generally use only a single kernel, such as IE browser using Trident kernel, Chrome browser using WebKit/Blink kernel, Firefox browser using Gecko kernel, etc. The dual-core browser integrates two different cores into one browser, and users can freely switch between them as needed. The emergence of dual-core browsers

PHP and JS Development Tips: Master the Method of Drawing Stock Candle Charts PHP and JS Development Tips: Master the Method of Drawing Stock Candle Charts Dec 18, 2023 pm 03:39 PM

With the rapid development of Internet finance, stock investment has become the choice of more and more people. In stock trading, candle charts are a commonly used technical analysis method. It can show the changing trend of stock prices and help investors make more accurate decisions. This article will introduce the development skills of PHP and JS, lead readers to understand how to draw stock candle charts, and provide specific code examples. 1. Understanding Stock Candle Charts Before introducing how to draw stock candle charts, we first need to understand what a candle chart is. Candlestick charts were developed by the Japanese

Simple JavaScript Tutorial: How to Get HTTP Status Code Simple JavaScript Tutorial: How to Get HTTP Status Code Jan 05, 2024 pm 06:08 PM

JavaScript tutorial: How to get HTTP status code, specific code examples are required. Preface: In web development, data interaction with the server is often involved. When communicating with the server, we often need to obtain the returned HTTP status code to determine whether the operation is successful, and perform corresponding processing based on different status codes. This article will teach you how to use JavaScript to obtain HTTP status codes and provide some practical code examples. Using XMLHttpRequest

The relationship between js and vue The relationship between js and vue Mar 11, 2024 pm 05:21 PM

The relationship between js and vue: 1. JS as the cornerstone of Web development; 2. The rise of Vue.js as a front-end framework; 3. The complementary relationship between JS and Vue; 4. The practical application of JS and Vue.

See all articles