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 inWeb
. It is used to enhanceHTML
pages and can usually be embedded inHTML
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, createcookies
, 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 languageWeb
developers use to provide this type of interaction. SinceJavaScript
works onHTML
pages, developers need to understandHTML
to get the most out of this scripting language. While there are other languages available for writing scripts on theWeb
, in reality it's basically all Javascript.
JavaScriptin
HTMLfiles. The first method involves embedding all the
JavaScriptcode within the
HTMLcode, while the second method uses a separate
JavaScript called from theScript
elementfile, that is, contained by the
Scripttag.
JavaScriptfiles are identified by the
.jsextension.
##4. Although
JavaScriptis mainly used to interact withHTML
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 writeJavaScript
code, you only need a basic text editor, such as Notepad inWindows
,Gimp
inLinux
OrBBEdit
. Some text editors, such asBBEdit
, provide syntax highlighting forJavaScript
. This will allow you to easily identify elements of theJavaScript
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!