In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly talks about "what's the difference between jscript and javascript". Interested friends might as well take a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "what's the difference between jscript and javascript?"
Difference: JScript is an active scripting language developed by Microsoft, while JavaScript is an interpreted scripting language developed by Netscape. Javascript is for all browsers, and Jscript is just for Microsoft's IE browser.
JScript introduction
JScript is an active scripting language developed by Microsoft. It is Microsoft's implementation of the ECMAScript specification. JScript was originally released with Internet Explorer 3.0 in August 1996. When network programmers talk about JavaScript in Internet Explorer, they actually mean JScript.
Like other activity scripts, it was later supported by Windows Script Host (WSH) and Active Server Pages. A typical JScript source file uses a .js extension.
The latest version of JScript is based on the unfinalized ECMAScript4.0 version of the JScript .NET specification and can be compiled in Microsoft's .net environment. JScript adds many features to the ECMA specification.
Functions of Jscript:
1. JScript 8.0 is a new generation version of ECMA 262language implemented by Microsoft. JScript 8.0 contains the essence of these two areas by combining the previous version of the JScript feature set with the best capabilities of class-based languages. Improvements to JScript 8.0 (being developed in conjunction with ECMAScript version 4) include: true compiled code, typed and untyped variables, late and early binding, classes (with inheritance, function overloading, property accessors, and so on), packages, cross-language support, and full access to the .NET Framework.
2. JScript 8.0 is a true object-oriented scripting language. Although JScript 8.0 can write reliable applications using classes, types, and other advanced language features, it still retains its "scripting" features, supporting untyped programming, expando functions and classes, dynamic code execution (using eval), and so on.
JScript 8.0 is not only an untyped language, but also can be used as a strongly typed language. In previous versions, JScript's loosely typed structure meant that variables took the type of value assigned to them. In fact, in previous versions, users could not declare the data type of a variable. JScript 8.0 allows for type annotation of variables, which provides more flexibility than previous versions of JScript. This method binds a variable to a specific data type so that the variable can only store that type of data.
In programming languages, strong typing has many advantages. In addition to the benefits gained when the data type used happens to be appropriate for the data being used, there are several other benefits:
Improve the speed of execution
Runtime / compile time type checking
Self-recording code
Finally, JScript 8.0 is not a simple version of another programming language, nor is it a simplification of anything. It is a modern scripting language that is widely used.
JavaScript introduction
JavaScript (JS for short) is a lightweight, interpretive or just-in-time high-level programming language with function priority. Although it is known as a scripting language for developing Web pages, it is also used in many non-browser environments. JavaScript is based on prototype programming, multi-paradigm dynamic scripting language, and supports object-oriented, imperative, and declarative (such as functional programming) styles.
JavaScript was first designed and implemented in Netscape Navigator browser by Brendan Eich of Netscape in 1995. Because Netscape works with Sun, Netscape management wants it to look like Java, so it is named JavaScript. But in fact, its grammar style is similar to that of Self and Scheme.
The JavaScript scripting language has the following characteristics:
(1) script language. JavaScript is an interpreted scripting language. Languages such as C and C++ are compiled and then executed, while JavaScript is explained line by line in the process of running the program.
(2) based on object. JavaScript is an object-based scripting language that can not only create objects, but also use existing objects.
(3) simple. The JavaScript language uses weak variable types and does not make strict requirements on the data types used. It is a scripting language based on Java basic statements and control, and its design is simple and compact.
(4) dynamic. JavaScript is an event-driven scripting language that responds to user input without going through a Web server. When visiting a web page, JavaScript can directly respond to these events when the mouse clicks or moves up and down, window movement and other operations in the web page.
(5) Cross-platform. The JavaScript scripting language does not depend on the operating system and only needs the support of browsers. Therefore, a JavaScript script can be written and used on any machine, on the premise that the browser on the machine supports the JavaScript scripting language, and JavaScript has been supported by most browsers. [5]
Unlike server-side scripting languages, such as PHP and ASP,JavaScript, are mainly run on users' browsers as client-side scripting languages and do not require server support. So in the early days, programmers preferred JavaScript to reduce the burden on the server, while at the same time brought another problem: security.
With the strength of the server, although programmers prefer to run scripts on the server side to ensure security, JavaScript is still popular for its cross-platform, easy-to-use and other advantages. At the same time, some special features, such as AJAX, must be supported on the client side by relying on Javascript. With the development of engines such as V8 and frameworks such as Node.js, and their event-driven and asynchronous IO features, JavaScript is gradually used to write server-side programs.
At this point, I believe you have a deeper understanding of "what's the difference between jscript and javascript". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.