The full name of JS is JavaScript. It is a lightweight, interpreted or just-in-time compiled programming language with function priority; it is a high-level scripting language belonging to the network, mainly used for the Web, and is often used for Add a variety of dynamic features to web pages.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
1. Javascript (JS) is a scripting language, mainly used in Web
. It is used to enhance HTML
pages and can usually be embedded in HTML
code. JavaScript
is an interpreted language. Therefore, it does not require compilation. JavaScript
Render web pages interactively and dynamically. This allows the page to react to events, display special effects, accept variable text, validate data, create cookies
, detect the user's browser, etc.
2. HTML
pages are suitable for displaying static content, such as simple images or text. However, most pages these days are rarely static. Many pages today have menus, forms, slideshows and even images that provide user interaction. Javascript
is the language Web
developers use to provide this type of interaction. Since JavaScript
works on HTML
pages, developers need to understand HTML
to get the most out of this scripting language. While there are other languages available for writing scripts on the Web
, in reality it's basically all Javascript.
JavaScript in
HTML files. The first method involves embedding all the
JavaScript code within the
HTML code, while the second method uses a separate
JavaScript called from the Script
element file, that is, contained by the
Script tag.
JavaScript files are identified by the
.js extension.
##4. Although
JavaScript is mainly used to interact with HTML
objects, it can also interact with other non-HTML
Objects to interact with, such as browser plug-ins, CSS
(Cascading Style Sheets) properties, the current date, or the browser itself. To write JavaScript
code, you only need a basic text editor, such as Notepad in Windows
, Gimp
in Linux
Or BBEdit
. Some text editors, such as BBEdit
, provide syntax highlighting for JavaScript
. This will allow you to easily identify elements of the JavaScript
code.
Recommended learning:
JS video tutorialThe above is the detailed content of what does js mean. For more information, please follow other related articles on the PHP Chinese website!