This chapter briefs the window object important functions and their usage.
An event is something that responds to certain actions or a function.
alert, confirm, prompt
It comes with OK and Cancel buttons. If we click on OK it returns true.If we click on Cancel it returns false.
If you are familiar with C programming what I can compare is alert is something like printf and prompt is like scanf.