What are the popup boxes in JavaScript?
- Alert () popup box, pop up some information, usually warning or prompt message, Terminal JS run and page load.
- 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.
- 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