サイ本 文
- 6. function hoge() {
huga();
function huga() {
console.log("piyopiyo");
}
}
hoge(); // “piyopiyo”
- 13. try {
throw new Error(" ");
//
}
catch(e) {
// try
console.log(e) // " "
}
finaly {
// try
// try
//
}
- 16. [takashi ~ 09:55 AM] $ node statement2.js
hogehogehogehoge //
node.js:63
throw e;
^
Error: //
- 17. function testfinally(a) {
try {
throw new Error(" ");
}
catch(e) {
throw new Error(" ");
}
finally {
console.log(a);
throw new Error(" ");
}
}
testfinally("hogehogehogehoge");
- 18. [takashi ~ 10:01 AM] $ node statement2.js
hogehogehogehoge
node.js:63
throw e;
^
Error:
- 20. with
by dankogai
http://blog.livedoor.jp/dankogai/archives/51066288.html
- 21. var foo = { bar : 1 };
var bar = 2;
console.log(bar);
with(foo){
console.log(bar);
delete foo['bar'];
console.log(bar);
}
[takashi ~ 10:10 AM] $ node dankogai1.js
2 // bar
1 // foo bar
2 // bar
- 22. • with(object) object
• object.name name
” with() without
with()
with(Math) with(new Namespace())
”
Editor's Notes
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n