Last active
April 29, 2023 04:54
-
-
Save Giromi/db3a46c16861739bcbaf9063c2f87775 to your computer and use it in GitHub Desktop.
[JS] function property 작성 방법
This file contains 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
let obj = { | |
slow1 : function (x) { | |
console.log(`Called with ${x}`); | |
return x; | |
}, | |
slow2(x) { | |
console.log(`Called with ${x}`); | |
return x; | |
}, | |
slow3 : (x) => { | |
console.log(`Called with ${x}`); | |
return x; | |
}, | |
} | |
console.log(obj); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LGTM