The array is created with the statement new Array with a name. Ex.
coin = new Array();
coin = "heads.jpg";
coin = "tails.jpg";
document.write(“Every evening I enjoy ” + tvshow);
* With Java, when you need to combine other text with variable output use the + symbol to concatenate ( connect or link in a series or chain)
window.prompt(“What is your favorite color?”, “crimson”);
To store the answer, set a variable.
var favcolor=window.prompt(“What is your favorite color?”, “crimson”);