Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (31 sloc) 716 Bytes

Advanced Javascript

Recap

Javascript != Java

Closures == ((Double Rainbow))

First, some history

Brendan Eich

Brilliant!

Java Scheme Self

Java: C-like syntax

Scheme: Higher Order Functions/Closures

Self: Prototype Inheritance

OOP in Javascript

Is Javascript OOP?

Prototype Inheritance

History

Self/Smalltalk

Properties Design Pattern - Steve Yegge

Some properties + a parent link

child.proto = parent

Functions as Constructors

Constructors as Types/Factories

func.prototype

return values from constructors

Prototype Inheritance Example to Mimic Normal OOP

Extending Core Types

Apply and Call