Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

generator js

function* gen() {
  yield 1;
  yield 2;
  yield 3;
}

var g = gen(); // "Generator { }"
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #generator #js
ADD COMMENT
Topic
Name
1+2 =