http://www.w3schools.com/jsref/jsref_split.asp
var str="How are you doing today?"; document.write(str.split() + "<br />"); document.write(str.split(" ") + "<br />"); document.write(str.split("") + "<br />"); document.write(str.split(" ",3));
How are you doing today? How,are,you,doing,today? H,o,w, ,a,r,e, ,y,o,u, ,d,o,i,n,g, ,t,o,d,a,y,? How,are,you
http://www.csee.umbc.edu/courses/undergraduate/104/fall09/ordonez/projects/die-images/
. Create an array using the image names.
Remember the images should be stored in the same location as the web page unless you want to use a relative or absolute path to access them.
var value = Math.random(); document.write(value + "<br />"); document.write(Math.ceil(value));
0.11275787446612806 1
<img src="image1.gif"/>
You spent $80.45 on different quantities of three of your favorite things. Each one of your favorite things costs $6.99, $4.99, and $2.19. You bought a total of 15 items. Write a program using nested loops that can tell you how many items of each of your favorite things you bought and display result in a web page.