Here's the code:
1<! DOCTYPE html>234<meta charset="Utf-8"/>5<title>this isA webpage</title>67<body>8<p>this file isAll About Array,it contains5Aspects</p>9<li>how can we declare a array</li>Ten<li>the Length property and push method of a array</li> One<li>how to change and add a memberinchA array</li> A<li>how to combine, or more arrays together (Method:concat ()) </li> -<li>how to reverse every elementinchThe array (Method:reverse ()) </li> -<script type="Text/javascript"> the vara=["Lucas","Nancy","Mason","Hugo"];//This line show how to create a array -a[1]="Jane";//How to change a member in the array -a[a.length]="Mike";//This line shows the property called length and how we can add a new member to the array -A.push ("Kris");//another the adding a member to a array + //alert (a); - varb=["Blake","Ellen","Chloe"]; + varc=["Allen","Michale"]; A //alert (b); at //alert (c); - varD=A.concat (b,c); - varReversed=b.reverse (); - alert (reversed); -</script> -</boby> inThe notes in the document are clear and will not be mentioned.
JavaScript what have I learned so far part-4-array