Skip to content

Commit 334d4de

Browse files
authored
pseudo function expression
it could be more intuitive. function() looks like calling a function but example is about function expression.
1 parent 7b76185 commit 334d4de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/04-object-basics/04-object-methods/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ user = {
8181
// method shorthand looks better, right?
8282
user = {
8383
*!*
84-
sayHi() { // same as "sayHi: function()"
84+
sayHi() { // same as "sayHi: function(){...}"
8585
*/!*
8686
alert("Hello");
8787
}

0 commit comments

Comments
 (0)