Introduction to "Concept Introduction" Javas Cript

Source: Internet
Author: User

Introduction to "Concept Introduction" Javas Cript


Javas Cript is the world's most popular scripting language, primarily for web development, and also for devices such as servers, PCs, laptops, tablets and smartphones.


Javas Cript is a lightweight programming language that can be inserted into an HTML page and interpreted and executed by the browser.


Javas Cript is a weak type of language. Javas Cript scripts Like other programming languages, each variable has a data type, but when declaring a variable without explicitly specifying its data type, the data type of the variable is deduced from the specific contents of the variable and automatically changed according to the variable's content. This is a strongly typed language that cannot be done.


The Javas Cript uses event-driven methods to respond to keyboard events, mouse events, browser window events, and so on, and perform specified actions.


Javas Cript is an interpreted scripting language that does not require a dedicated compiler to compile and embed directly into HTML documents, which are interpreted and executed by the browser on a row-by-line basis, easing the pressure on the server.


The Javas cript is relatively safe. Javas Cript is a client-side script that interprets execution through the browser. It does not allow access to the local hard disk, cannot save the data to the server, does not allow the modification and deletion of the network documents, only through the browser to achieve information browsing or dynamic interaction, so as to effectively prevent the loss of data.


To sum up, Javas cript is a strong vitality and development potential of the scripting language, it can be directly embedded in the HTML document, for the browser to interpret the execution, directly respond to client events, and call the appropriate processing methods, quickly return to the processing results and update the page, to achieve web interactivity and dynamic, At the same time, most of the work to the client processing, greatly reducing the resource consumption of the Web server.

Tips for Beginners

Strictly speaking, Javas Cript is not an object-oriented programming language, but rather an "object-based" programming language. Javas Cript Object-oriented thinking and implementation is more obscure, if there is no "orthodox" object-oriented programming experience, want to learn Javas Cript is more difficult, if you think that learning C language to learn Javas Cript will be very easy, then you will be very disappointed. Therefore, I suggest that in-depth study Javas cript before, it is best to have PHP, C + +, Java and other "Orthodox" object-oriented programming language development experience.


Of course, if you just want to add some special effects to the page instead of working on Javas Cript, you will find that Javas Cript is very easy to learn and flexible, and that many of its grammars are similar or even identical to the C language.

The difference between Javas Cript and Java

Javas Cript has nothing to do with Java, Javas Cript is not a Java scripting language, nor is it based on Java!


Javas Cript and Java are different programming languages developed by the two companies:

?

Java is a product of SUN, an object-oriented programming language for software development, web development, Android development, and embedded development.

?

?

Javas Cript is Netscape's product, originally designed to extend the functionality of the Netscape browser.

?


Note: Javas Cript was originally named "Lives Cript", with the popularity of Java, in order to marketing, renamed "Javas Cript", is a purely commercial means, and the language itself is not related to the binding.


Introduction to "Concept Introduction" Javas Cript

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.