One of the basics of JavaScript introductory series courses

Source: Internet
Author: User
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>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.