JavaScript:
- JavaScript is a programming language written for websites to run in the browser.
- It is used to validate the user input at browser level itself before submitting the page to server for further processing. This reduces load on the server.
- It helps to provide immediate feedback to user as it runs on browser.
- It provides increased interactivity by reacting when user hovers over mouse or activate using keyboard.
- It aids in achieving rich user interface design by including items like drag and drop components and sliders for website visitors.
AngularJs:
- Angular is a framework written using javascript and is made for building single-page web applications.
- Angular's data binding and dependency injection eliminate much of the code writing. It happens within the browser, making it an ideal partner with any server technology.
- Its fully data-driven approach helps to develop applications without requiring to refresh Models, update the DOM and other time-consuming tasks such as browser bug fixes and inconsistencies.