Difference between JavaScript and VBScript

JavaScript is a lightweight and object-oriented scripting language used to create dynamic HTML pages with interactive effects within a webpage. It is an interpreted scripting language and its code is run in a web browser only. It is also called a browser’s language and can be used for client-side developments as well as server-side developments. It was developed by Brendan Eich at Netscape and was first released in 1995. 
JavaScript Example: 

Javascript

filter_none

edit
close

play_arrow

link
brightness_4
code

<script type="text/javascript"
    document.write("Hello geeks, greeting from GeeksforGeeks"
</script> 

chevron_right



VBScript is an active scripting language introduced by Microsoft. It is developed based on Visual Basic and is also called a Visual Basic scripting language. It does not support all browsers, supports only Internet Explorer. It is generally used in Microsoft environments and uses a component object model to access system objects and variables of the environment. 
VBScript Example:

Javascript

filter_none

edit
close

play_arrow

link
brightness_4
code

<script type="text/vbscript"
    document.write("Hello geeks, greeting from GeeksforGeeks"
</script> 

chevron_right


Difference between JavaScript and VBScript: 

S.No. JavaScript VBScript
1. It was developed by Netscape. It was developed by Microsoft.
2.. It does job as a client-side scripting language. It does job as both server-side and client-side scripting language.
3. It supports all web browsers and it is a default scripting language in mostly browsers. It does not support all browsers, supports only Internet Explorer.
4. It uses the same operator for various operations. While it uses different operators for various operations.
5. It uses curly braces for declaration of functions. It uses Function and End function for declaration of functions.
6. JavaScript file has the file extension “.js”. VBScript file has the file extensions “.vbs” or “.vba”. 
7. It is simpler and easier to learn JavaScript. It is difficult for beginners to learn VBScript as compared to JavaScript.
My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.