Home  >  Article  >  Web Front-end  >  is there a difference between javascript and js

is there a difference between javascript and js

青灯夜游
青灯夜游Original
2021-04-19 12:02:007032browse

There is no difference between javascript and js; js is the abbreviation of javascript and the meaning is the same. JavaScript (often abbreviated as js) is a high-level, interpreted programming language; it is a high-level scripting language for the Internet and is often used to add a variety of dynamic functions to web pages.

is there a difference between javascript and js

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

There is no difference between javascript and js.

JavaScript (often abbreviated as JS) is a high-level, interpreted programming language; it is a prototype-based, function-first language, a multi-paradigm language, and it supports Object-oriented programming, imperative programming, and functional programming.

JavaScript is a network scripting language that has been widely used in Web application development. It is often used to add various dynamic functions to web pages to provide users with smoother and more beautiful browsing effects.

javascript language composition

  • ECMAScript 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 usage:

  • 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 the visitor’s browser information.

  • Control cookies, including creation and modification.

  • Server-side programming based on Node.js technology.

Characteristics of JavaScript:

The JavaScript script language has the following characteristics:

  • Scripting 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.

  • Object based. JavaScript is an object-based scripting language that can not only create objects but also use existing objects.

  • 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.

  • Dynamic. JavaScript is an event-driven scripting language that can respond to user input without going through a 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.

  • Cross-platform. JavaScript scripting 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.

[Recommended learning: javascript advanced tutorial]

The above is the detailed content of is there a difference between javascript and js. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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