Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Create JavaScript Generators

// define a generator function
function* generator_function() {
   ... .. ...
}

// creating a generator
const generator_obj = generator_function();
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Create #JavaScript #Generators
ADD COMMENT
Topic
Name
7+7 =