One, what is JavaScript?
1. JavaScript is a scripting language that interprets execution
2. JavaScript is a programming language that can be used to add interactivity to a Web page.
3, JavaScript is not java. JAVASCRITP was developed by Netscape, and Java was developed by Sun.
second, the development of JavaScript tools
In a sense, text editing software can write JavaScript code, the Windows platform is recommended to use the Aptana IDE development tools, of course, more development tools can be a simple search for more results! If you are recommending the use of the bare bones software company under the Mac platform TextWrangler
third, JavaScript considerations
1, Case sensitive
2, spaces and newline: spaces in the code will be ignored, the same identifier all the letters must be continuous. A line of code can be written in more than one line, but not the same for strings. To divide a string into multiple lines, each row is treated as a separate string, and the "+" operator is used to concatenate strings that are not peers.
3, semicolons are optional, but it is recommended to use semicolons to distinguish between
four, JavaScript program demo
<! 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> <script language=" JavaScript "> document.write (" First JavaScript program!) Jb51.net "); </script> </body> </ptml>