Q:

What is the difference between Javascript and VBScript?

A:

Quick Answer

Though there are numerous technical and specification differences between the two programming languages, the primary difference is the syntax that is used in programming functions. Simply put, VBScript and JavaScript are derived from different programming languages.

 Know More

Full Answer

VBScript is rooted in the Visual Basic programming language developed by Microsoft. Visual Basic is an extension of the BASIC language, and is intended to provide a simple interface for programmers. JavaScript uses an extension of the C language in its syntax. In other words, users of each language have to type different commands to execute the same or similar functions.

There are likely more similarities than differences between JavaScript and VBScript. Both are considered lightweight programming languages, meaning they are designed for quick interpretation and ease of use. The two are also similar in their practical functions. Both are used in carrying out various tasks relating to the creation or modification of files, documents and HTML pages in run-time environments.

Since scripting often requires interaction with browsers and other controlling software, compatibility issues sometimes arise with both JavaScript and VBScript. Visual layout tools like the ActiveX Control Pad may help all involved parties to interact smoothly. VBScript, since it was created by Microsoft, is designed to function with Microsoft's Internet Explorer browser. Other browsers, such as Mozilla Firefox, do not support VBScript, so many developers opt to use JavaScript.

Learn more about Computer Programming

Related Questions

  • Q:

    What is a syntax error?

    A:

    In computing, a syntax error is an error in the use of the programming language resulting in the inability to execute the program. Computer programs need to follow the correct programming syntax strictly in order to work; even slight mistakes make the program invalid.

    Full Answer >
  • Q:

    What are the advantages and disadvantages of JavaScript?

    A:

    Advantages of using JavaScript include ease of syntax, versatility, processing speed and access to extensive JavaScript libraries in the public domain. Disadvantages may include security risks and interoperability issues between user systems.

    Full Answer >
  • Q:

    What are some pseudocode examples?

    A:

    Pseudocode explains a computer programming algorithm in logical, rational terms in the format of computer programming lines without creating an actual programming code. Pseudocode helps programmers visualize the steps needed to write programs with mathematical functions, Boolean logic and parameters that produce various outputs.

    Full Answer >
  • Q:

    How is linear programming used in the real world?

    A:

    Linear programming is used daily in the real world to optimize the allocation of resources or activities to generate the most benefit or profit. Linear programming can take multiple factors into account into the thousands and is used extensively by business managers, economists and public planners.

    Full Answer >

Explore