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:
Mustafa Kemal Tuna 2021-04-04 11:47:58 +03:00 committed by GitHub
parent 7b76185892
commit 334d4de8e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ user = {
// method shorthand looks better, right? // method shorthand looks better, right?
user = { user = {
*!* *!*
sayHi() { // same as "sayHi: function()" sayHi() { // same as "sayHi: function(){...}"
*/!* */!*
alert("Hello"); alert("Hello");
} }