In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "what's the difference between javascript and vbscript". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn this article "what's the difference between javascript and vbscript".
Differences: 1. There are two kinds of JS comments, single-line comment "/ /" and multi-line comment "/ * /"; there is only one kind of Vbscript, with single quotation marks "'". 2. JS declares variables with var, let, and const;, while Vbscript can only use Dim. 3. JS is case-sensitive, Vbscript is not case-sensitive, etc.
The operating environment of this tutorial: windows7 system, javascript1.8.5 version, Dell G3 computer.
The difference between JavaScript and VBScript:
1. Differences in annotations
There are two kinds of Javascript comments, which are single-line comments / / and multi-line comments / * /
Vbscript comments are annotated with single quotation marks'
2. Differences in declaring variables
There are three ways to declare JavaScript variables, using the var, let, and const keywords.
Vbscript is defined as Dim, but it must be declared before it is assigned
Such as:
Dim nnumbernumber=12
3. Syntactic differences
The JavaScript syntax is similar to the C programming language and is a case-sensitive language.
The VBScript syntax is similar to visual basic in that it is based on Visual Basic and follows the basic syntax of visualization for application development. It is a case-insensitive language
4. Browser support
JavaScript is the default scripting language for most Web browsers and supports almost all Web browsers because it supports cross-platform. It can read and modify HTML elements from IE browsers and automate ActiveX components in browsers.
VBScript is not the default scripting language for browsers because it only supports Internet Explorer or Microsoft Edge browsers. We need to specify it as a scripting language. It can read and modify HTML elements from IE browsers and automate ActiveX components in IE browsers.
5. Functional support
JavaScript is an object-oriented scripting language, it is not perfect object-oriented, does not support the concept of inheritance. It supports powerful object usage and class declarations to create objects later, and does not support programs.
VBScript is also a partially object-oriented scripting language. It does not support inheritance concepts, the use of objects, object creation, and user-defined classes. It supports reusable functions and subroutines.
These are all the contents of this article entitled "what's the difference between javascript and vbscript". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.