It is a client side scripting language that executes in the user's browser.
It is used to create client-side dynamic pages.
It is an object-based scripting language which is lightweight and cross-platform.
1. Less server interaction
2. Immediate feedback to the visitors
3. Increased interactivity
4. Richer interfaces
1. It does not allow the reading or writing of files.
2. It cannot be used for networking applications.
3. It doesn't have any multithreading or multiprocessor capabilities.
1. Client-side validation
2. Dynamic drop-down menus
3. Display date and time
4. Display pop-up windows and dialog boxes
5. Display clocks
1. Between the head tag of html
2. Between the body tag of html
It allows us to omit the semicolon at the end of a statement if we place each statement in a separate line but it is recommended to use a semicolon after the statements.
It is a case-sensitive language.
Single line comment: Any statement between // and end of line is considered as a comment.
Multi line comment: Any statement between /* and */ as well as between is considered as a comment.