JavaScript Tutorial/Array/Array Declaration

Материал из Web эксперт
Версия от 11:25, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Array declaration with element count

   <source lang="javascript">

<html> <head> <title>A Simple Page</title> <script language="javascript">

</script> </head> <body> </body> </html></source>


Define two arrays and use for statement to ouput their values

   <source lang="javascript">

<html> <head> <title>Define two arrays and use for statement to ouput their values</title> </head> <body>

Define two arrays and use for statement to ouput their values

<script language="javascript" type="text/javascript"> </script>

</body> </html></source>


Initialize a string array during declaration and check the array size

   <source lang="javascript">

<html> <head> <title>A Simple Page</title> <script language="javascript">

</script> </head> <body> </body> </html></source>


Integer Array Declaration with initialization

   <source lang="javascript">

<html> <head> <title>Array Declaration</title> <script language="javascript" type="text/javascript">

</script> </head> <body> </body> </html></source>


Output array element in a HTML table format

   <source lang="javascript">

<html> <head> <title>Table of Phone Numbers</title> </head> <body>

Table of Phone Numbers

<script language="javascript" type="text/javascript"> </script>

</body> </html></source>


Paralled array

   <source lang="javascript">

<html> <head> <title>Define two arrays and use for statement to ouput their values</title> </head> <body>

Define two arrays and use for statement to ouput their values

<script language="javascript" type="text/javascript"> </script>

</body> </html></source>


Store strings in array

   <source lang="javascript">

<html> <head> <title>Store strings in array</title> </head> <body>

<script language="javascript" type="text/javascript"> </script>

</body> </html></source>