In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you what the underlying language of js is, concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
As we all know, JavaScript is a literal scripting language, a dynamically typed, weakly typed, prototype-based language with built-in support for types. And because its name is preceded by java, many people think it is written in the java language, but this is not the case.
At this point, we have to put forward the historical reasons for the name javascript.
In 1995, Netscape recruited Brandon Ike with the goal of embedding the Scheme language into Netscape Navigator browsers.
But earlier, Netscape had already partnered with Shenyang to support Java in Netscape Navigator, and there was a heated debate within Netscape.
Netscape later decided to invent an auxiliary scripting language that works with Java and was somewhat similar in syntax, which led to the exclusion of existing languages, such as Perl, Python, Tcl, or Scheme.
To defend the idea of JavaScript in other competitive proposals, the company needs a working prototype. It took Ike only ten days to design the prototype in May 1995. Its grammar style is similar to that of Self and Scheme.
Originally named Mocha, it was renamed LiveScript in the Beta version of Netscape Navigator 2.0 in September 1995, and was renamed to JavaScript when it was deployed in Netscape Navigator 2.0 Beta 3 in December of the same year. At that time, the development alliance formed by Netscape and Shenyang computer Company in order to match the language with the "hot word" of Java programming language, so it was temporarily renamed JavaScript, which later became one of the reasons for many misunderstandings about the language.
So java is not its underlying language.
In general, a complete JavaScript consists of the following three parts:
ECMAScript, describing the syntax and basic objects of the language.
Document object Model (DOM), which describes the methods and interfaces for dealing with web page content.
Browser object Model (BOM), which describes the methods and interfaces for interacting with browsers.
JavaScript is commonly used to accomplish the following tasks:
Embed dynamic text in the HTML page in response to browser events read and write HTML elements validate data detection visitors' browser information control cookies, including creation and modification, before the data is submitted to the server
The JavaScript scripting language has the following characteristics:
(1) script language.
JavaScript is an interpreted scripting language. Languages such as C and C++ are compiled and then executed, while JavaScript is explained line by line in the process of running the program.
(2) based on object.
JavaScript is an object-based scripting language that can not only create objects, but also use existing objects.
(3) simple.
The JavaScript language uses weak variable types and does not make strict requirements on the data types used. It is a scripting language based on Java basic statements and control, and its design is simple and compact.
(4) dynamic.
JavaScript is an event-driven scripting language that responds to user input without going through a Web server. When visiting a web page, JavaScript can directly respond to these events when the mouse clicks or moves up and down, window movement and other operations in the web page.
(5) Cross-platform.
The JavaScript scripting language does not depend on the operating system and only needs the support of browsers. Therefore, a JavaScript script can be written and used on any machine, on the premise that the browser on the machine supports the JavaScript scripting language, and JavaScript is currently supported by most browsers.
Unlike server-side scripting languages, such as PHP and ASP,JavaScript, are mainly run on users' browsers as client-side scripting languages and do not require server support. So in the early days, programmers preferred JavaScript to reduce the burden on the server, while at the same time brought another problem: security.
The above is what language is at the bottom of js. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.