You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1172,7 +1172,7 @@ You can download the PDF and Epub version of this repository from the latest run
1172
1172
| Declarative: Computation does not start until subscription, so they can run whenever you need the result | Executes immediately on creation|
1173
1173
| Provides multiple values over time | Provides only one |
1174
1174
| Subscribe method is used for error handling that facilitates centralized and predictable error handling | Push errors to the child promises |
1175
-
| Provides chaining and subscription to handle complex applications | Uses only .then() clause |
1175
+
| Provides chaining and subscription to handle complex applications | Uses only `.then()` clause |
1176
1176
1177
1177
**[⬆ Back to Top](#table-of-contents)**
1178
1178
@@ -1199,7 +1199,7 @@ You can download the PDF and Epub version of this repository from the latest run
1199
1199
**[⬆ Back to Top](#table-of-contents)**
1200
1200
1201
1201
46. ### How do you perform error handling in observables?
1202
-
You can handle errors by specifying an **error callback** on the observer instead of relying on try/catch which are ineffective in asynchronous environment.
1202
+
You can handle errors by specifying an **error callback** on the observer instead of relying on `try`/`catch`, which are ineffective in asynchronous environment.
1203
1203
1204
1204
For example, you can define error callback as below,
1205
1205
```javascript
@@ -1211,8 +1211,8 @@ You can download the PDF and Epub version of this repository from the latest run
1211
1211
1212
1212
**[⬆ Back to Top](#table-of-contents)**
1213
1213
1214
-
47. ### What is the short hand notation for subscribe method?
1215
-
The subscribe() method can accept callback function definitions in line, for next, error, and complete handlersis known as short hand notation or Subscribe method with positional arguments.
1214
+
47. ### What is the shorthand notation for subscribe method?
1215
+
The `subscribe()` method can accept callback function definitions in line, for `next`, `error`, and `complete` handlers. It is known as shorthand notation or Subscribe method with positional arguments.
1216
1216
1217
1217
For example, you can define subscribe method as below,
0 commit comments