hello readers, in the last post we have discussed the javascript introduction briefly so now in this post, we'll see the uses of javascript?
Uses of JavaScript:
The JavaScript was initially introduced to provide programming capability at both the server and client ends of web connection.JavaScript, therefore, is implemented at two ends:
- client end
- back end
It also provides some means of computation, which serves as an alternative for some tasks done at the server-side.
Interaction with users through form elements, such as button and menus, can be conveniently described in JavaScript. Because button clicks and mouse movements are easily detected with JavaScript, they can be used to trigger computations and provide feedback to the user.
For example, when a user Moves the mouse cursor from the textbox, JavaScript can detect that moment and check the appropriateness of the textbox’s value(which presumably was just filled by the user).
Even without forms, user interaction is both possible and simple to the program in JavaScript. These interactions, which take place in the dialogue Windows, includes getting input from the user and allowing the user to make choices through the buttons. It is also easy to generate new content in the browser displays dynamically.
This transfer of tasks ensures that the server is not overloaded and performs only the required task.
But client-side JavaScript cannot replace servers side JavaScript; because server-side software supports file operation, database access, security, and networking, etc.
JavaScript is also used as an alternative to Java applets.
Programming in JavaScript is must simpler than compared to Java
JavaScript support DOM (document object model) which enables JavaScript to access and modify CSS properties and content of any element of a displayed XHTML document.
I hope you guys understand the uses of the javascript. If you have any queries or you find any mistake please comment down below.