Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/5.4.0/Rx.js"></script>
 
Rx.Observable.interval(1000).subscribe(
  x => console.log(`next: ${x}`),
  error => console.error(`error: ${error}`),
  () => console.log("complete")
);
// 1秒毎に以下がコンソール出力される
// => "next: 0"
// => "next: 1"
// => "next: 2"
// => "next: 3"
// => "next: 4"
// => ...
// => "next: 99"
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers