I know it sounds very basic but I have big confusion about Rxjs specifically when we compare with Promises in order to fetch some data using an API. So here is a quoted defination from some xyz website:
Promise object may provide only a single value. It can be an array but it’s still a single object. On the contrary, an Observable may emit multiple values over time.
Question: My question is considering above defination, if we call an API which returns an array of numbers i.e [1,2,3,4,5], now we use either promise or observable, both will return this array response in first attempt and thats it, so what does it mean when we say Observable may emit multiple values over time?