Eloquent Javascript by Marijn Haverbeke
-
Upload
fuckurself -
Category
Documents
-
view
278 -
download
3
description
Transcript of Eloquent Javascript by Marijn Haverbeke
→
→
→
×
π
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
×
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
ϕ
ϕ
No pizza, no squirrel76
No pizza, squirrel 4
Pizza, no squirrel 9
Pizza, squirrel 1
ϕ
ϕ =n11n00 − n10n01√
n1•n0•n•1n•0
n01
n01n1•
n•0
× ×× × ×
√340000 ϕ ≈
ϕ
→
ϕ
n1•
→
→
→
ϕ
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
π
→
→
→
→
→
→
→
value: 1rest: value: 2
rest: value: 3rest: null
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
×
× ×
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
toString: <function>...
teeth: "small"speak: <function>
killerRabbit
teeth: "long, sharp, ..."adjective: "killer"
Rabbit
prototype
Object
create: <function>prototype...
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
××
→
→
→
→
→
←
→
→
→
→
→
→
→
→
←
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
" "
boundary
boundary
Group #1
"chicken"
"cow"
"pig"
digit "s"
boundary
Group #1
"h"
One of:
- "f""a"
digit
digit
"b"
One of:
"1"
"0"
boundary
"b"
Group #1
One of:
"1"
"0"
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
dodefine
x10
if>
x5
print"large"
print"small"
→
→
→
→
→
→
herea
.I also wrote a book! Read it
p
Hello, I am Marijn and this is...p
My home pageh1
body
My home pagetitle
head
html
html head title My home page
body h1 My home page
p Hello! I am...
p I also wrote...
herea
.
I also wrote a book! ...p
Hello, I am Marijn...p
My home pageh1
body
0
1
2
childNodes firstChild
lastChild
previousSibling
nextSibling
parentNode
→
→
→
→
→
→
→
→
π
ππ
cos(¼π)
sin(¼π)
cos(-⅔π)
sin(-⅔π)
→
→
π
→
π
π
π12
π
π
translate(50, 50)
rotate(0.1*Math.PI)
rotate(0.1*Math.PI)
translate(50, 50)
mirror
1 23 4
14π
→
→
→
→
→
→
→
→
→
→
→
→
→
→
→
× ×
synchronous, single thread of control
synchronous, two threads of control
asynchronous
→
!x2 + y2
×