1. What is JavaScript?
1. JavaScript is a script language for interpreting execution.
2. JavaScript is a programming language that can be used to add interactivity to webpages.
3. JavaScript is not Java. Javascrui was developed by Netscape and Java was developed by sun.
Ii. JavaScript development tools
In a sense, all text editing software can write JavaScript code. We recommend that you use Aptana IDE on windows, of course, more development tools can be used to search for more results! We recommend that you use the TextWrangler developed by Bare Bones software on mac.
Iii. JavaScript considerations
1. Case Sensitive
2. Space and line feed: spaces are ignored in the Code. All letters of the same identifier must be consecutive. One line of code can be divided into multiple lines of books, but different strings. To divide a string into multiple rows, each row must be used as a separate string, and then the strings in different rows are connected using the "+" operator.
3. Semicolons are optional. However, we recommend that you use semicolons to differentiate them.
Iv. JavaScript program demonstration
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml"> <pead> <meta http-equiv =" content-Type "content =" text/html; charset = gb2312 "/> <title> first JavaScript Program </title> </pead> <body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]