Вы находитесь на странице: 1из 11

CREATIN ARRAYS

An Array can be used to store the information


about each organizations web page.

Initializing the Array


With java script , an array element may contain
multiple pieces of information and write special
function that act on the array element , you are
creating a custom element

The first step to create an array with multiple


attributes is to tell the browser to set aside the
necessary memory required for the array.

The Club Arrays


Accepts the parameter that indicate how many
element will be in the array. Next the for loop in
line 7 loop through all the element and initializes
each array element to 0.

This Keyword
In line 6 refers to the array that the function is
initializing. The club array() is called using the
new operator.
The this keyword tells the java script that you are
referring to the current instance of the array of
that the array currently being created with the
new operator.

Populating the Array


to populate the array, the array first is
declare, with the club array() function.

Displaying Data Based on a Cookie Value

Displaying the Student Name


The <head> section of the HTML in the side bar.
Web page contains the array function cookie()
function. Java script, however, generates the
display of the students name. this HTML must
be placed in the <BODY> section of the HTML
code.

Displaying organization list


When displaying the organization list necessary
to read each possible organizations cookie, to
see if the cookie exists. If the cookie, then
javascript write some HTML that include the
organization name.

THANKS HOPE YOU ENJOY MY REPORT!!!!!!

Prepared by:
John Paul Baliquig
BSCS_13095

Вам также может понравиться