Skip to content
PhoenixAndMachine edited this page Apr 7, 2014 · 32 revisions

Javascript

If you think Javascript is similar to Java, C++ or Python, since they are called object-oriented programming languages, then you have to read this page.

I wrote this article after reading High Performance Javascript, Pro JavaScript Design Patterns and resources from website.

JS has several differences from the traditional object-oriented languages, which you have to understand clearly.

  1. Flexibility and Dynamic

    1.1 Simple functional Style

    1.2 Scope, Nested Function and Closure

    1.3 Loosely-typed

    1.4 Simply-class-style

    1.5 Prototype-VS-__proto__

  2. Object-Oriented in JS

    2.1 Interfaces

    2.2 Encapsulation

    2.3 Inheritance

  3. Asynchronous Programming

This article can be considered as a beginner's guide, step by step, including a lot of coding examples. You can install nodejs to run those js code.

Clone this wiki locally