|
Quick Check 7.42
1) What an array is an ordered selection of values that is referenced from one single name. var Colors = new Array();
2) Colors [1] =�Red�; Colors [2] =�Green�; Colors [3] =�Blue� Colors [4] =�Black� Colors [5] =�White� There are 6 elements in this array.
3) A program loop repeats a number of instructions over until a certain condition is met. A For loop repeats a certain number of times until it stops and ends, and a While loop repeats until a condition is met.
4) for (i = 1;i<=5;i++) { document.write (�NewsFlash! }
5) It will take the values of 5, 10, 15, 20, and 25 is the last number in the loop.
6) if (month = = �september�) { document.write (�Welcome back to school�); } 7) if (month==(�september�) { document.write(�Welcome back to school!�); } else { document.write(�Today�s Headlines�); } |