Things JavaScript beginners don't know (2)
In this article, we mainly share with you the basic syntax and data types of javascript. Of course, it is still the most basic, but I don’t want to go into details. I hope that students who are just getting started should take a look at it. Otherwise, after seeing this title, I think it is not about syntax and What about data types? With just a little knowledge, I already knew it.
1 Keywords and Reserved Words
ECMA-262 describes a set of keywords with specific purposes. These keywords can be used to indicate the beginning or end of a control statement, or to perform a specific action, etc. As a rule, keywords are also language reserved and cannot be used as identifiers. The following are all the keywords of ECMAScript (the ones with * superscript are new keywords in the 5th edition):
break | do | instanceof | typeof | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
case | ##else | new | var | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
catch | finally | return | void | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
continue | ##forswitch | ##while | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
function | this | with | ##default | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
if | throw | delete | in | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
try | ## ECMA-262 also describes another set of reserved words that cannot be used as identifiers. Although reserved words do not yet have any specific use in the language. But they may be used as keywords in the future. The following are all reserved words defined by ECMA-262 version 3:
class
全等:仅比较不转换 8 函数函数对于任何语言来说都是一个核心的概念。 <span style="font-family: 微软雅黑, "Microsoft YaHei";">function foo(a,b,c){<br/> console.log(arguments[2] === c);//true}</span> Copy after login 这个原因并不因为他们指向的是同一块内存,因为他们内存空间的值会相互同步, 相关推荐: |
The above is the detailed content of Things JavaScript beginners don't know (2). For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to use WebSocket and JavaScript to implement an online speech recognition system Introduction: With the continuous development of technology, speech recognition technology has become an important part of the field of artificial intelligence. The online speech recognition system based on WebSocket and JavaScript has the characteristics of low latency, real-time and cross-platform, and has become a widely used solution. This article will introduce how to use WebSocket and JavaScript to implement an online speech recognition system.

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

From Beginner to Expert: Five Essential C Compiler Recommendations With the development of computer science, more and more people are interested in programming languages. As a high-level language widely used in system-level programming, C language has always been loved by programmers. In order to write efficient and stable code, it is important to choose a C language compiler that suits you. This article will introduce five essential C language compilers for beginners and experts to choose from. GCCGCC, the GNU compiler collection, is one of the most commonly used C language compilers

JavaScript and WebSocket: Building an efficient real-time weather forecast system Introduction: Today, the accuracy of weather forecasts is of great significance to daily life and decision-making. As technology develops, we can provide more accurate and reliable weather forecasts by obtaining weather data in real time. In this article, we will learn how to use JavaScript and WebSocket technology to build an efficient real-time weather forecast system. This article will demonstrate the implementation process through specific code examples. We

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

C++ or Python, which one is more suitable for beginners? In this era of information technology sweeping the world, programming ability has become an essential skill. In the process of learning programming, choosing a suitable programming language is particularly important. Among many programming languages, C++ and Python are two popular choices for beginners. So, which one is more suitable for beginners, C++ or Python? The following will compare the advantages and disadvantages of the two in various aspects, and why choosing a certain language is more helpful for beginners to get started with programming.

Beginner's Guide: How to Read HTML Tabular Data with Pandas Introduction: Pandas is a powerful Python library for data processing and analysis. It provides flexible data structures and data analysis tools, making data processing simpler and more efficient. Pandas can not only process data in CSV, Excel and other formats, but can also directly read HTML table data. This article will introduce how to use the Pandas library to read HTML table data, and provide specific code examples to help beginners

For beginners, choosing the appropriate Django version is an important and must-face issue. As an efficient web framework, Django has a large number of users and developers, so it also has multiple versions to meet the needs of different products and applications. But how do you choose the right Django version based on your project needs? Below we will use some examples to help you choose the version that suits you. Confirm that the database used Django supports multiple databases, including MySQL, Postgre
