The JavaScript Generators function can paused and resumed, The generators function are implementing using the asterisk(*) sign we have to add the asterisk sign after to the function keyword like this function*.
Read this post on javascripthive.info