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.timer(1000).subscribe(
  x => console.log(`next: ${x}`),
  error => console.error(`error: ${error}`),
  () => console.log("complete")
);
// 1秒後に以下がコンソール出力される
// => "next: 0"
// => "complete"
Output 300px

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