title: what is the difference between observer and subscriber in RXJS?
body: <p>What is the difference between observer and subscriber in RXJS?</p>
  <p>See the code below</p>
  <pre><code>// subscriber being used
  const observable = new Observable(subscriber =&gt; {
    subscriber.next(1);
    subscriber.next(2);
  })
  
  // observer being used
  const observable = new Observable(observer =&gt; {
    observer.next(1);
    observer.next(2);
  })
  </code></pre>
  <p>What is the difference between observer and subscriber in the context above?</p>