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 includes java in front of it, many people think that it is written in java language, but in fact it is not.
# Having said that, I have to bring up the historical origin of the name javascript. . .
In 1995, Netscape recruited Brandon Ek with the goal of embedding the Scheme language into the Netscape Navigator browser.
But earlier, Netscape had cooperated with Sun to support Java in Netscape Navigator. At this time, there was a fierce debate within Netscape.
Later Netscape decided to invent an auxiliary scripting language that could be used with Java and had a similar syntax. This decision ruled out the use of existing languages such as Perl, Python, Tcl or Scheme.
To defend the idea of JavaScript among other competing proposals, the company needed a working prototype. Ike designed the prototype in just ten days in May 1995. Its syntax style is closer to Self and Scheme.
Originally named Mocha, it was renamed LiveScript in the Beta version of Netscape Navigator 2.0 in September 1995. In December of the same year, it was renamed JavaScript when deployed in Netscape Navigator 2.0 Beta 3. At that time, the development alliance formed by Netscape and Sun Microsystems temporarily changed its name to JavaScript in order to make the language catch up with the "hot word" of Java, a programming language. In the future, this became the reason why the public had many misunderstandings about this language. one of the reasons.
So java language is not its underlying language.
Generally speaking, complete JavaScript includes the following three parts:
ECMAScript, which describes the syntax and basic objects of the language.
Document Object Model (DOM) describes the methods and interfaces for processing web content.
Browser Object Model (BOM) describes the methods and interfaces for interacting with the browser.
JavaScript is commonly used to accomplish the following tasks:
Embed dynamic text in HTML pages Respond to browser events Read and write HTML elements Validate data before it is submitted to the server Detect visitors' browser information to control cookies, including creation and modification.
JavaScript script language has the following characteristics:
(1) Script language.
JavaScript is an interpreted scripting language. Languages such as C and C are compiled first and then executed, while JavaScript is interpreted line by line during the running of the program.
(2) Based on objects.
JavaScript is an object-based scripting language that can not only create objects, but also use existing objects.
(3)Simple.
The JavaScript language uses weakly typed variable types and does not impose strict requirements on the data types used. It is a scripting language based on Java's basic statements and controls, and its design is simple and compact.
(4)Dynamic.
JavaScript is an event-driven scripting language that can respond to user input without going through the Web server. When visiting a web page, JavaScript can directly respond to these events when the mouse is clicked, moved up or down, or moved in the window.
(5) Cross-platform.
The JavaScript script language does not depend on the operating system and only requires browser support. Therefore, after writing a JavaScript script, it can be brought to any machine for use, provided that the browser on the machine supports the JavaScript scripting language. Currently, JavaScript is supported by most browsers.
Unlike server-side scripting languages, such as PHP and ASP, JavaScript is mainly used as a client-side scripting language to run on the user's browser and does not require server support. Therefore, in the early days, programmers preferred JavaScript to reduce the burden on the server, but at the same time it also brought about another problem: security.
The above is the detailed content of What language is the underlying language of js?. For more information, please follow other related articles on the PHP Chinese website!

Choosing Python or JavaScript should be based on career development, learning curve and ecosystem: 1) Career development: Python is suitable for data science and back-end development, while JavaScript is suitable for front-end and full-stack development. 2) Learning curve: Python syntax is concise and suitable for beginners; JavaScript syntax is flexible. 3) Ecosystem: Python has rich scientific computing libraries, and JavaScript has a powerful front-end framework.

The power of the JavaScript framework lies in simplifying development, improving user experience and application performance. When choosing a framework, consider: 1. Project size and complexity, 2. Team experience, 3. Ecosystem and community support.

Introduction I know you may find it strange, what exactly does JavaScript, C and browser have to do? They seem to be unrelated, but in fact, they play a very important role in modern web development. Today we will discuss the close connection between these three. Through this article, you will learn how JavaScript runs in the browser, the role of C in the browser engine, and how they work together to drive rendering and interaction of web pages. We all know the relationship between JavaScript and browser. JavaScript is the core language of front-end development. It runs directly in the browser, making web pages vivid and interesting. Have you ever wondered why JavaScr

Node.js excels at efficient I/O, largely thanks to streams. Streams process data incrementally, avoiding memory overload—ideal for large files, network tasks, and real-time applications. Combining streams with TypeScript's type safety creates a powe

The differences in performance and efficiency between Python and JavaScript are mainly reflected in: 1) As an interpreted language, Python runs slowly but has high development efficiency and is suitable for rapid prototype development; 2) JavaScript is limited to single thread in the browser, but multi-threading and asynchronous I/O can be used to improve performance in Node.js, and both have advantages in actual projects.

JavaScript originated in 1995 and was created by Brandon Ike, and realized the language into C. 1.C language provides high performance and system-level programming capabilities for JavaScript. 2. JavaScript's memory management and performance optimization rely on C language. 3. The cross-platform feature of C language helps JavaScript run efficiently on different operating systems.

JavaScript runs in browsers and Node.js environments and relies on the JavaScript engine to parse and execute code. 1) Generate abstract syntax tree (AST) in the parsing stage; 2) convert AST into bytecode or machine code in the compilation stage; 3) execute the compiled code in the execution stage.

The future trends of Python and JavaScript include: 1. Python will consolidate its position in the fields of scientific computing and AI, 2. JavaScript will promote the development of web technology, 3. Cross-platform development will become a hot topic, and 4. Performance optimization will be the focus. Both will continue to expand application scenarios in their respective fields and make more breakthroughs in performance.


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

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download
The most popular open source editor

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version
SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
