function*
keyword can be used to define a generator function inside an expression.new Object()
, Object.create()
, or using the literal notation (initializer notation). An object initializer is a list of zero or more pairs of property names and associated values of an object, enclosed in curly braces ({}
).