Page 84 - Nodejs 교과서 개정2판
P. 84
֢٘ ղ ё ঌইࠁӝ
֢٘ীࢲח ӝࠄੋ ղ ё৬ ղ ݽٕ ଵઑ ਸ ઁҕפ ٮ۽ ࢸೞ ঋইب ߄۽ ࢎਊೡ ࣻ
ਵݴ ࠳ۄ window ё৬ ࠺तೞҊ ࠁݶ ؾפ
ীࢲח ֢٘ ۽Ӓې߁ਸ ೡ ٸ ݆ ॳח ղ ёܳ ঌইࠁѷणפ
HMPCBM
ݢ global ёੑפ ࠳ۄ window৬ э ёੑפ ё۽ ݽٚ ੌীࢲ Ӕೡ
ࣻ णפ ژೠ window.open ݫࢲ٘ܳ Ӓր openਵ۽ ഐೡ ࣻ ח Ѫۢ globalب ࢤۚೡ ࣻ णפ
ীࢲ ࢎਊ೮؍ require ೣࣻب global.requireীࢲ global ࢤۚػ Ѫੑפ ֢٘ ࣛী ۽Ӓܳ ӝ
۾ೞח console ёب ਗېח global.consoleੑפ
global ё ղࠗীח ݒ ݆ ࣘࢿ ٜয णפ ীࢲ ߓ ղਊٜ global ё উী णפ
ղࠗܳ ࠁ۰ݶ 3&1-ਸ ਊ೧ঠ פ
/PUF ֢٘ XJOEPX EPDVNFOU ё
֢٘ী %0.ա #0. হਵ۽ window৬ document ёח ֢٘ীࢲ ࢎਊೡ ࣻ হणפ ֢٘ীࢲ window ژח docum
entܳ ࢎਊೞݶ ী۞о ߊࢤפ
콘솔
$ node
> global
{
global: [Circular *1],
clearInterval: [Function: clearInterval],
clearTimeout: [Function: clearTimeout],
...
}
> global.console
{
log: [Function: bound consoleCall],
warn: [Function: bound consoleCall],
dir: [Function: bound consoleCall],
...
}