JavaScript design mode Stoyan stefanov-reading notes

Source: Internet
Author: User
Introduction to the first chapter

One or three types of modes

design mode, encoding mode, anti-pattern

Ii. Basic JavaScript concepts

1. Object-oriented

Five basic types: number, String, Boolean, undefine, null

Functions are objects as well as properties and methods

There are two types of objects: 1, native ECMAScript 2, host, defined in the host environment, such as a browser

Native includes: Built-in objects and user-defined objects

Host includes: Window object and all DOM objects

2. Prototypes

The prototype is an object, and each automatically gets a prototypes property that points to a new, empty object

  

3, JSLint

JavaScript is a parsing language without static compile-time checks, JSLint is a tool to check the quality of JavaScript code

JavaScript design mode Stoyan stefanov-reading notes

Related Article

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.