What is JavaScript?
JavaScript is a very powerful client-side scripting language.
JavaScript is used mainly for enhancing the interaction of a user with the webpage. In other words, you can make your webpage more lively and interactive, with the help of JavaScript. JavaScript is also being used widely in game development and Mobile application development.
- JavaScript can react to events.
- JavaScript can read and write HTML elements.
- JavaScript can be used to validate input data.
- JavaScript can be used to detect the visitor's browser.
- JavaScript can be used to create cookies.
JavaScript Types
1. Client Side JavaScript
2. Server Side JavaScript
Client Side Scripting generally refers to the class of computer programs on the web that are executed at client side by the user’s web browser, instead of server-side (on the web server). This type of computer programming is an important part of the Dynamic HTML concept, enabling web pages to be scripted, that is to have different and changing content depending on user input, environmental conditions such as the time of the day, or other variables.
Advantages of ClientSide Scripting
- The Web browser uses it’s own resources, and erase the burden on the server.
- it has fewer feature than server side language.
DisAdvantages of ClientSide Scripting
- Code is usually visible
- Code is Probably modifiable
- Local files and database can’t be accessed
Server Side JavaScript Normally when a browser requests an HTML file, the server returns the file , but if the file contains a server side script, the script inside the HTML file is executed by the server before the file is returned to the browser as a plain HTML.
What can server scripts do?
- Respond to user queries of data submitted from HTML forms
- Access any data or databases and return the result for individual users.
- Provide security since your server code cannot be viewed from the browser.
In next content we learn about how to write code and which type of syntax are required for write javaScript
What is JavaScript?
JavaScript is a very powerful client-side scripting language.
JavaScript is used mainly for enhancing the interaction of a user with the webpage. In other words, you can make your webpage more lively and interactive, with the help of JavaScript. JavaScript is also being used widely in game development and Mobile application development.
JavaScript is used mainly for enhancing the interaction of a user with the webpage. In other words, you can make your webpage more lively and interactive, with the help of JavaScript. JavaScript is also being used widely in game development and Mobile application development.
- JavaScript can react to events.
- JavaScript can read and write HTML elements.
- JavaScript can be used to validate input data.
- JavaScript can be used to detect the visitor's browser.
- JavaScript can be used to create cookies.
JavaScript Types
1. Client Side JavaScript
2. Server Side JavaScript
Client Side Scripting generally refers to the class of computer programs on the web that are executed at client side by the user’s web browser, instead of server-side (on the web server). This type of computer programming is an important part of the Dynamic HTML concept, enabling web pages to be scripted, that is to have different and changing content depending on user input, environmental conditions such as the time of the day, or other variables.
Advantages of ClientSide Scripting
- The Web browser uses it’s own resources, and erase the burden on the server.
- it has fewer feature than server side language.
DisAdvantages of ClientSide Scripting
- Code is usually visible
- Code is Probably modifiable
- Local files and database can’t be accessed
Server Side JavaScript Normally when a browser requests an HTML file, the server returns the file , but if the file contains a server side script, the script inside the HTML file is executed by the server before the file is returned to the browser as a plain HTML.
What can server scripts do?
- Respond to user queries of data submitted from HTML forms
- Access any data or databases and return the result for individual users.
- Provide security since your server code cannot be viewed from the browser.
In next content we learn about how to write code and which type of syntax are required for write javaScript
No comments:
Post a Comment