Recently, I created a basic generator:
function geni()
{
for(var i = 0; i < 10; i++)
{
yield i;
}
}
Unfortunately, I encountered an error message:
SyntaxError: missing ; before statement [Break On This Error]
yield i;
My device details are as follows: Firefox 19.0.2 on Windows 7.
Can someone please point out what I'm doing incorrectly?