> For the complete documentation index, see [llms.txt](https://soufatn.gitbook.io/rxjs-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://soufatn.gitbook.io/rxjs-book/summary/observer/observer_instance_methods/onnext.md).

# onNext

Notifies the observer of a new element in the sequence.

### Arguments

1. `value` *(Any)*: Next element in the sequence.&#x20;

### [Example](http://jsbin.com/navivu/2/edit?js,console)

```javascript
var observer = Rx.Observer.create(
  x => console.log(`onNext: ${x}`),
  e => console.log(`onError: ${e}`),
  () => console.log('onCompleted'));

observer.onNext(42);
// => onNext: 42
```

### Example
