Created
November 27, 2017 13:51
-
-
Save seogi1004/d93de97278f9f435215151819ece058b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Test = function() { | |
console.log(this); | |
this.print = function() { | |
alert("this.print"); | |
}; | |
}; | |
// 함수 호출 | |
Test(); | |
// 인스턴스 생성 | |
var ttt = new Test(); | |
console.log(ttt); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment