0

What does * right after a var or object mean?

I keep seeing the * used right up against a bar or obj and it's not clearly multiplication of two values. How else can the * be used other than X * Y = ?

13th Dec 2018, 10:08 PM
Casey
Casey - avatar
1 Respuesta
+ 6
Keep going with JavaScript Tutorial! ;) 👍 You will learn Iterators & Generators! 😉 function* () {...} * with function keyword, it's called a generator function (or gen function). https://www.sololearn.com/learn/JavaScript/2981/
13th Dec 2018, 10:20 PM
Danijel Ivanović
Danijel Ivanović - avatar