9.07.2012

VBScript vs JavaScript

Difference between VBScript and JavaScript


S.No
VBScript
JavaScript
1
Definition:
VBScript is an Active Scripting language,which uses the Component Object Model to access elements of the environment within which it is running.
Definition:
JavaScript is an object-oriented scripting language used to enable programmatic access to objects within both the client application and other applications.
2
Who developed ?
VBScript is developed by Microsoft.
Who developed ?
JavaScript is developed by Netscape.
3
Client-side / Server-side scripting language:
It is both Client and server side scripting language.
Client-side / Server-side scripting language:
It is client side scripting language.
4
Case sensitive or not:
It is not case sensitive.
Case sensitive or not:
It is case sensitive.
5
Runs on which browser ?
VBScript runs only on IE
Runs on which browser ?
Javascript runs on any browser
6
Default scripting language or not:
It is the not the deault scripting language.It must be specified as the scripting language.
Default scripting language or not:
It is the default scripting language for most web browsers.
7
How to denote functions in VBScript ?
It uses Function and End Function to denote functions.
How to denote functions in JavaScript ?
It uses curly braces to denote functions.
8
Same / Different Character used for different actions:
It uses different characters for different actions.example: & for concatenation and + for addition.
Same / Different Character used for different actions:
It uses the same character (+) for both addition and concatenation.
9
File Extension:
File extension for VBScript is .vbs or .vba.
File Extension:
File extension for JavaScript is .js.

No comments:

Post a Comment