Core JavaScript
latest
Getting started
Counters example
Test tools
Immutables
Equality
Objects
The object tree
Simple classes
The global object
Closures
What is this?
Bind is transient
What is new?
Arguments
Mark Miller’s device
Exercise one
Solution one
Exercise two
Solution two
Core JavaScript
Docs
»
Welcome to Core JavaScript training
Edit on Bitbucket
Welcome to Core JavaScript training
¶
This document has a
Search Page
.
About this course
¶
Getting started
What you need
Windows and Linux
Are you ready?
Yes, you’re ready
Counters example
Goal
counters.html
counters.css
counters.js
Test tools
How to write tests
How to run tests
testools.js
Objects
¶
Immutables
Strings
typeof
Numbers
Booleans
undefined and null
Gotchas
Equality
Double equals
Triple equality
Don’t use double equality
Compare as string
Compare as number
Objects
Simple objects
Missing attributes
hasOwnProperty
Object literals
Arrays
Array literals
JSON
The object tree
Tree
Root
Create
Using create
Simple classes
Definition
Why
cls
?
Fruit example
Functions
¶
The global object
Getting global
Global variables
Global pollution
More global pollution
Explanation
Closures
Test code
Discussion
Explanation
Exercises
What is this?
Test code
Discussion
Explanation
Exercises
Bind is transient
Test code
Discussion
Explanation
What is new?
Test code
Discussion
No missing
new
warning
Arguments
Test code
Mark Miller’s device
Test code
Examples and exercises
¶
Exercise one
Hints
Solution one
Verbal summary
Hoisting once-only arguments
What is AAA?
The assignment to BBB.fff
Caveat
Exercise two
Hints
Solution two
Making a loop
Factory function
A prototype class
A SimpleClass solution
Exercise: write test
Exercise: bound method class
Read the Docs
v: latest
Versions
latest
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.