Week five Homework

Source: Internet
Author: User

Talking about JavaScript

Since this team project uses JavaScript and I'm not familiar with the language, I've learned a bit about javascript this week by surfing the web and reading books.

JavaScript is a network scripting language, has been widely used in Web application development, often used to add a variety of dynamic features for Web pages, to provide users with more smooth and beautiful browsing effect.

JavaScript has some very good ideas and a handful of bad ideas. Good ideas include functions, weak types, dynamic objects, and object literal representations. Bad ideas include a programming model based on global variables.

JavaScript's function is primarily a lexical-scoped top-level object, which is the first lambda language to become mainstream.

The JavaScript compiler cannot detect a type error, which is a weakly typed language. The use of weakly typed languages is relatively free, and there is no need to build complex class hierarchies, do not make a strong manufacturing device, or deal with type systems to get the desired behavior.

JavaScript is a very powerful method of object literal representation. By listing the components of an object, they can be simply created.

Prototype inheritance is also a feature of JavaScript. JavaScript has a system of untyped objects, in which objects inherit properties directly from other objects.

JavaScript has a bad choice: it relies on global variables to connect. All the top-level variables of all compilation units are brokered into a common namespace called global objects.

Today, the web has become a very important application development platform, and JavaScript is the only language that all browsers can recognize. This is one of the reasons that JavaScript is flawed, but we have to use it.

Week five Homework

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.