Create an Observable that emits the number written in the input box when this changes. Observable should double this value using the map function. It will finish with an error if the value is not a number and it will complete if the value is equal to END. A subscriber writes in a box the emitted values, the error and when the observable is completed.
Observable that emits events from input keyup. It debounces the events 500 ms, maps the event to the input value and filters only the values with length greater than 2. A Subject is subscribed to the Observable, and this Subject emits the value of the input when the button is clicked. A subscriber does an AJAX call with the emitted values.