Академический Документы
Профессиональный Документы
Культура Документы
PROJECTS IN JAVASCRIPT
Tim Disney
• No modules or packages
• no class/object distinction
var myObj = {
foo: "bar",
baz: 42.34
}
myObj.foo; // “bar”
function myFun() {
var localVar = 5;
globalVar = 22;
}
var myObj = { {
foo: "bar", myObj: {
baz: 42.34 foo: “bar”,
} baz: 42.34
myObj.foo; // “bar” },
foo
foo
bar foo
myObj
bar foo
children: foo, bar
myObj
bar foo
children: foo, bar
myObj
myFun bar foo
children: foo, bar
myObj
myFun bar foo
children: foo, bar
myObj
num myFun bar foo
children: foo, bar
window myObj
num myFun bar foo
children: myObj, myFun, num children: foo, bar
window myObj
num myFun bar foo
children: myObj, myFun, num children: foo, bar
RGraph