Basic JavaScript Data Structure

Source: Internet
Author: User

The programming of the scripting language provided by JavaScript is very similar to that provided by C ++. It only removes common errors such as pointers in the C language and provides a powerful class library. for people who already have C ++ or C, it is very easy and pleasant to learn the JavaScript scripting language. 1. JavaScript code is included in HTML, which is part of the HTML document. combined with HTML tags, it forms a powerful Internet programming language. you can directly add JavaScript scripts to the document: script language = "JavaScript"> JavaScript language code ;.... /script> Description: Mark the script>... </script> indicates that the source code of the javascript script will be placed in it. the attribute Language = "JavaScript" is used to describe the Language used in the logo. Here, it is objective C. Indicates the language used in JavaScript. the following is an example of adding a JavaScript script to a Web document: Test2.html html> head> script language = "JavaScript"> document. write ("this is a network school"); document. close ();/script>/head>/html> call test2.html in the browser window to display the string "this is a network school. see figure 2. figure 2 Description: Document. write () is the output function of the document Object. Its function is to output the characters or variable values in brackets to the window. document. close () is to close the output. script>... </script> MARK into head> ..

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.