Can js define functions without using the function keyword?

recently, when reading other people"s Mini Program code, I found that the function methods in page in js were not declared with function, but there was no suggestion in the es6 specification that function could be omitted. What"s going on?

Jun.12,2021

Yes. Es6 is fine, https://www.ecma-internationa.

definition of literal quantity of object:

  

when you have nothing to do, there are many new things in es6, and es7 also appears

.
Menu