Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<script src="https://unpkg.com/@reactivex/rxjs@5.0.3/dist/global/Rx.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[RX] Base Subject">
  <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.3.0/Rx.min.js"></script>
</head>
<body>
</body>
</html>
 
const trigger = new Rx.Subject();
const action = trigger.subscribe(() => {
  console.log('Fire 🚀 !')
});
// Somewhere else
trigger.next();
setTimeout(() => {
  trigger.next();
}, 1000);
Output 300px

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

Dismiss x
public
Bin info
Yago31pro
0viewers