JavaScript:
JavaScript is a scripting language supported by all latest browsers. Execution of JavaScript depends upon browser (basically on browser engine). So there are lot of coding stuff depends upon browser. There are lots of libraries in market which wrap up the cross browser coding by providing common functions for them. E.g. JQuery
Pros and Cons of Using JavaScript:
Advantages:
1. Fast execution
2. Provides better user experience
Disadvantages:
1. Not secure (Lot of work needs to be done to secure , because all codes rendered on client machine)
2. If not used properly slow down the page performance
3. Increase the page size for downloading
What can a JavaScript Do?
- JavaScript gives HTML designers a programming tool
- JavaScript can put dynamic text into an HTML page
- JavaScript can react to events
- JavaScript can read and write HTML elements
- JavaScript can be used to validate data
- JavaScript can be used to detect the visitor's browser
- JavaScript can be used to create cookies
JavaScript cheat sheet