InterviewSolution
| 1. |
Need of JavaScript |
|
Answer» JavaScript is a lightweight and interpreted scripted/ programming language introduced in by Brendan Eic. It has a lot of advantages like validation, animation, interactions, ETC. However, like any other programming language, it has some limitations too like you cannot WRITE files on server, browser compatibility issues, etc. Let us see the limitations of JavaScript one by one: Writing files on server JavaScript cannot DIRECTLY write files on server. However, they can do this USING server-side script. Disable JavaScript Due to security reasons, every web browser provides an option to disable JavaScript. The screenshot displays how to ENABLE or disable JavaScript:
It cannot be used for Networking applications.
Applications may behave differently in different web browsers. To support all modern browsers, you need to write cross browser codes.
Since the code executes on client’s computer, the chances are high for vulnerability and can be exploited for malicious purposes
JavaScript cannot access databases. You need AJAX and a server-side script for this. Note: New developments in JavaScript introduced accessing client-side databases. |
|