-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerators.js
More file actions
63 lines (46 loc) · 1.29 KB
/
Copy pathgenerators.js
File metadata and controls
63 lines (46 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// // function* generate(j){
// // // console.log("tejni");
// // let c = yield ;
// // // console.log(c,'//gamer');
// // yield 'Something'+10;
// // }
// // let def = generate();
// // console.log(def.next("jn"))
// // console.log(def.next("9io"));
// // console.log(def.next('20'))
// // // console.log(def.next());
// // function* logGenerator() {
// // // console.log(0);
// // console.log(1, yield);
// // console.log(2, yield);
// // console.log(3, yield);
// // }
// // var gen = logGenerator();
// // // the first call of next executes from the start of the function
// // // until the first yield statement
// // gen.next(); // 0
// // gen.next('pretzel'); // 1 pretzel
// // gen.next('california'); // 2 california
// // gen.next('mayonnaise'); // 3 mayonnaise
// function *createGenerator() {
// const a = yield;
// console.log("fdjfnd",a)
// }
// var generator = createGenerator();
// console.log(
// generator
// .next('input1')
// )
// console.log(
// generator
// .next('fdfd')
// )
// // undefined
// // console.log(
// // generator
// // .next("infviv")
// // )
// // console.log(
// // generator
// // .next()
// // )