Chapter 1, 2, 3 Flashcards
(37 cards)
JavaScript represents arrays with the ______ object
Array
Special function type used as the basis for creating reference variables
Constructor
Syntax of an Array
var arrayName = new Array(number of elements);
Each piece of data contained in an array
Element
Returns the number of elements in an array
length property
Syntax of length property of the Array class
array_name.length;
Set of data represented by a single variable name
Array
Extract elements and values from an array you use the _______ method
slice()
Syntax for the slice() method
array_name.slice(start, end);
______method removes and returns the first element from the beginning of an array
shift()
______ method removes the last element from the end of an array
pop()
______ method adds one or more elements to the end of an array
push()
Use the _____ method to add an d remove elements within an array
splice()
use the _____ method to renumber the indexes in the array
splice()
Use the _____ method to sort an array alphabetically
sort()
Use the _______ method to reverse the order of the elements of the array
reverse()
Use the _____ method to combine arraays
concat()
Example of Client Side Scripting
Java Script
Example of Sever Side Scripting
PHP, ASP, Cold Fusion
Browser and server exchange info using ____
HTTP
HTTP request has 3 things:
1.
2.
3.
- Name of html file being requested
- Internet address of browser
- Internet address of web server
HTTP response has 3 things:
1.
2.
3.
- Address of browser making the request
- Address of server filling the request
- HTML document requested
A _____ ______ is also called a Client/Server App
Web application
Basic Syntax of While Loop
while (variable <= endvalue)
{
Code to be executed
]