What is JavaScript?

 时间:2026-04-26 17:01:51

1、The JavaScript Engine

Different engines have different “codenames”, for example:

1.V8 – in Chrome and Opera.

2.SpiderMonkey – in Firefox.

There are other codenames like “Trident”, “Chakra” for different versions of IE,  ChakraCore” for Microsoft Edge, “Nitro” and “SquirrelFish” for Safari  etc.

2、How engines work?

1.Engines are complicated. But the basics are easy.

2.The  engine (embedded if it’s a browser) reads (“夏贪parses”)  the script.Then it converts (“compiles”追销) the script to the machine language.

3.And then the machine code runs, pretty fast.

The engine applies optimizations on every stage of the process. It even watches the compiled script as it runs, analyzes the data that flows through it and applies optimizations to the machine code based on that knowledge. At the end, scripts are quite fast.

3、What can in-browser JavaScript do?

The modern JavaScript is a“safe” programming language. It does not provide low-level access to memory orCPU, because it was initially created for browsers which do not require it.

In-browser JavaScript can do everything related to webpage manipulation, interaction with the user and the webserver.

For instance, in-browser JavaScript is able to:

1.Add new HTML to the page, change the existing content, modify styles.

2.React to user actions, run on mouse clicks, pointer movements, key presses.

3.Send requests over the network to remote servers,      download and upload files (so-called AJAX and COMETtechnologies).

4.Get and set cookies, ask questions to the visitor, show messages.

Remember the data on the client-side (“local storage”).

4、What CAN'T in-browser JavaScript do?

JavaScript'sabilities in the browser are limited for the sake of the user's safety. The aimis to prevent an evil webpage from accessing private information or harming theuser'胳针财s data.

5、What makes JavaScript unique?

There are at least three great things about JavaScript:

1.Full integration with HTML/CSS.

2.Simple things done simply.

3.Supported by all major browsers and enabled by default.

Combined, these three things exist only in JavaScript and no other browser technology.

That's what makes JavaScript unique. That's why it's the most widespread tool to create browser interfaces.

While planning to learn a new technology, it's beneficial to check its perspectives. So let's move on to the modern trends that include new languages and browser abilities.

  • 什么是JavaScript?
  • javascript浅谈
  • Javascript原型
  • JavaScript基础this
  • javascript 's Code structure -Semicolons
  • 热门搜索
    大手牵小手手抄报 请讲普通话手抄报 老师您辛苦了手抄报 创建卫生城市手抄报 国庆中秋手抄报 元宵节手抄报图片大全 创文手抄报简单又漂亮 卫生小常识手抄报 关于童话的手抄报 三年级手抄报大全