diff --git a/aio/content/guide/comparing-observables.md b/aio/content/guide/comparing-observables.md
index 87cfb69073..049d16308a 100644
--- a/aio/content/guide/comparing-observables.md
+++ b/aio/content/guide/comparing-observables.md
@@ -46,7 +46,7 @@ promise.then((value) => {
* Observables differentiate between transformation function such as a map and subscription. Only subscription activates the subscriber function to start computing the values.
-
obs.map((value) => value * 2 );
obs.pipe(map((value) => value * 2));
promise.then((value) => value * 2);
concat()
obs.concat(obsB)+
concat(obs, obsB)
➞1➞2➞3➞5➞7➞'a'➞'b'➞'c'
filter()
obs.filter((v) => v>3)+
obs.pipe(filter((v) => v>3))
➞5➞7
find()
obs.find((v) => v>3)+
obs.pipe(find((v) => v>3))
➞5
findIndex()
obs.findIndex((v) => v>3)+
obs.pipe(findIndex((v) => v>3))
➞3
forEach()
obs.forEach((v) => {
+ obs.pipe(tap((v) => {
console.log(v);
-})
+}))
1
2
3
@@ -294,7 +294,7 @@ An observable produces values over time. An array is created as a static set of
map()
- obs.map((v) => -v)
+ obs.pipe(map((v) => -v))
➞-1➞-2➞-3➞-5➞-7
@@ -305,8 +305,8 @@ An observable produces values over time. An array is created as a static set of
reduce()
- obs.scan((s,v)=> s+v, 0)
- ➞1➞3➞6➞11➞18
+ obs.pipe(reduce((s,v)=> s+v, 0))
+ ➞18
arr.reduce((s,v) => s+v, 0)