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 calculator app on the iPhone was strikingly similar to the Braun ET44 calculator. [more...]