Till now we’ve looked at two important methods, the alert() method of the window object and write() of document object. You’ve also seen how text or numbers can be passed to these methods.
document.write("Your name is " + vis_name);
alert("Welcome " + vis_name + "\nHow are we today?");
Remember, a variable should be placed outside the quotes to display its value.
The first iPod came with Breakout (also known as Bricks), a game originally developed years back by Apple's co-founder, Steve Wozniak, and others. It was included as an easter egg on the device. [more...]