Skip to content

Instantly share code, notes, and snippets.

@Giromi
Last active April 29, 2023 04:54
Show Gist options
  • Save Giromi/db3a46c16861739bcbaf9063c2f87775 to your computer and use it in GitHub Desktop.
Save Giromi/db3a46c16861739bcbaf9063c2f87775 to your computer and use it in GitHub Desktop.
[JS] function property 작성 방법
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);
@YeonSeong-Lee
Copy link

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment