2015-06-16

Source: Internet
Author: User

What are the popup boxes in JavaScript?

  1. Alert () popup box, pop up some information, usually warning or prompt message, Terminal JS run and page load.
  2. The Confirm () Message selection box is used to manipulate the confirmation of the information, to return a Boolean value that is true after confirmation, and to execute the function.
  3. Prompt () Enter the prompt box to accept the data entered by the user.

Ii. What are the features of the JavaScript array

  • An ordered list of data
  • Array creation can have constructor creation (new Array (' A ', ' B ', 1,function (), new Object), or omit the new keyword), literal creation (var arr = [])
  • Do not create a bug such as var arr = [2,3,4,] or var arr = [,,,] such that the IE8 or the following version of the browser will still not have the array length of 4 bits, arr[3] is undefined, whereas in other browsers it will be considered a 3-bit length.
  • The length of the array is not a read-only property, you can delete the last bits of the array by changing the length property of the array, for example arr[arr.length]= ' a '. For example, arr[99] = ' B ' regardless of the length of the previous 99, the length of the array becomes 100.

2015-06-16

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.