Modern JavaScript

[Pages:93]Modern JavaScript

Baumgartner - @ddprrt - Nov 2020

Brendan Eich

JS had to "look like Java" only less so, be Java's dumb kid brother or boyhostage sidekick.

Plus, I had to be done in ten days or something worse than JS would have

happened.

Java

Syntax

Perl

Strings, Arrays, Regular Expressions

HyperTalk

Event Handlers

Self

Prototype inheritance

Scheme

Closures

AWK

functions

Eich's subversive Agenda

? Objects without classes ? First class functions ? Closures ? Prototypes ? Some Java influences

Eich's subversive Agenda

? Objects without classes ? First class functions ? Closures ? Prototypes ? Some Java influences

var person = { name: "Stefan", age: 38

}

Eich's subversive Agenda

? Objects without classes

? First class functions ? Closures ? Prototypes ? Some Java influences

function greet(name) { alert("Hello " + name)

} function stefanize(funcs) {

funcs("Stefan") } stefanize(greet)

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download