Comments are hidden Every line of code between the script tags are called statements . Scripts can also be embedded in the HTML tags. JavaScript is based on the concepts of objects . JavaScript is event driven. To enclose something in quotation marks within a sequence of characters that themselves enclosed in quotation marks, you use single quotation marks for the inner quotation.
Objects have properties.
Event handlers are used to signal user events that occur on the client, such as loading a document, clicking the mouse button, or submitting a form. To ensure cross browser compatibility, you can do a browser check after the page is partially or completely loaded. You can then use this information to decide which scripts to use or where to re-direct your users to make the best use of their particular browser. JavaScript is a very weakly typed language. In other words it is very forgiving about how you use data types.