1Generators:
21) They only compute the next value when the user asks for it.(pause the
3 execution after every output)
42) They can generate infinte values.
53) Calling a generator return in iterable iterator.
6
7//example
8function* fibonacci(){
9 let a = 0;
10 let b = 1;
11 while(true){
12 yield a ;
13 [a, b] = [b, a+b] ;
14 }
15};
16let f = fibonacci();
17f().next() // give 0
18f().next() // give 1
19
1componentDidMount() {
2 //initialize datatable
3 $(document).ready(function () {
4 $('#example').DataTable();
5 });
6 }