function* square_increment(){
    var value = 1;
    
    while(true){
        yield value*value;
        value ++;
    }
}
let square = square_increment();square.next().value;square.next().value;
View all comments