pseudo function expression
it could be more intuitive. function() looks like calling a function but example is about function expression.
This commit is contained in:
parent
7b76185892
commit
334d4de8e1
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ user = {
|
|||
// method shorthand looks better, right?
|
||||
user = {
|
||||
*!*
|
||||
sayHi() { // same as "sayHi: function()"
|
||||
sayHi() { // same as "sayHi: function(){...}"
|
||||
*/!*
|
||||
alert("Hello");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue