Categories
October Surprise 2016

javascript – Why do we need an asterisk (*) after the “function …

Why do we need an asterisk (*) after the “function” keyword to make a generator? Can’t the language figure it out by looking for the “yield” keyword? Ask Question Asked 11 years, 9 months ago Modified 6 months ago