Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/5.5.5/Rx.js"></script>
</head>
<body>
</body>
</html>
 
let obs = Rx.Observable
            .create(observer => observer.next(Date.now()))
            .publish();
obs.connect();
obs.subscribe(v => console.log("1st subscriber: " + v));
obs.subscribe(v => console.log("2nd subscriber: " + v));
obs.subscribe(v => console.log("3nd subscriber: " + v));
// obs.connect();
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
ZenabKhanpro
0viewers