ulpc / MWZ-1

제 1회 언더싸롱배 망월장
http://undersalon.com
5 stars 1 forks source link

개발자의 삶 #9

Open jungbyungwoo1 opened 6 years ago

jungbyungwoo1 commented 6 years ago
var Person = function() {
    this.work = function (quote) {
        console.log(quote);
    };
};

var developer0 = new Person()
    , developer1 = new Person()
    , developer2 = new Person();
var designer0 = new Person();
var manager0 = new Person();
var chief0 = new Person();

for (var week = 0; week < 5; week++) {
    for (var weekDay = 0; weekDay < 30; weekDay++) {
        developer0.work("working...");
        developer1.work("working...");
        developer2.work("working...");
        designer0.work("move this 'div' 1px to right.");
        manager0.work("that's nice.");
    }
    chief0.work("this is not what I mean.");
}

by byung

우리는 모두 같은 Person 객체이지만 하는 일은 모두 다릅니다.