function katana(){
this.isSharp = true;
}
katana();
assert( isSharp === true, "A global object now exists with that name and value." );
var shuriken = {
toss: function(){
this.isSharp = true;
}
};
shuriken.toss();
assert( shuriken.isSharp === true, "When it's an object property, the value is set within the object." );
私は実際にこのコードが何を伝えようとしているのかわかりません。JavaScriptのコンテキストとは何か、上記のコードでコンテキストは正確に何を表しているのか、誰かに説明してもらえますか?