- It is fully integrated with HTML and CSS.
- It is supported by all major browsers & enabled by default.
- Chrome and Opera = V8 engine.
- Firefox = SpiderMonkey.
- Safari = Nitro, SquirrelFish.
- Internet explorer = “Trident” and “Chakra” for different versions of IE.
- Microsoft Edge = ChakraCore. etc.
For Example, if “a feature A is supported by V8 engine”, then it could work in Chrome & Opera web browser.
Code compiler/interpreter Engines are complicated. But the basics are easy.
Browser Detection and control
Simple and powerful web form Validation
- Create new HTML on the page, change the existing content, and modify CSS styles.
- It can also remember the data on the client-side (“local storage”).
- Respond to user actions/events, run on mouse clicks, pointer movements, key presses etc.
- Send requests over the network to remote servers, download & upload files (AJAX & COMET technologies).
The example above uses the method to “find” an HTML element (with id=”changehtml”) and changes the element content (innerHTML) to “Code with Bill” .
NB: The image name provided in the source attribute must be in the same website folder. You can also provide a URL to an image on another domain/server.
There are dozens of modern tools which make the conversion very fast & transparent, allowing developers to code in another language and auto-converting it “under the hood”.
TypeScript: It is developed by Microsoft and it concentrated on adding “strict data typing” to simplify the development & support of complex systems.
Flow: It is developed by Facebook it also adds data typing feature, but in a different way.