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
@@ -1159,7 +1159,7 @@ You can download the PDF and Epub version of this repository from the latest run
1159
1159
| Declarative: Computation does not start until subscription, so they can run whenever you need the result | Executes immediately on creation|
1160
1160
| Provides multiple values over time | Provides only one |
1161
1161
| Subscribe method is used for error handling that facilitates centralized and predictable error handling | Push errors to the child promises |
1162
-
| Provides chaining and subscription to handle complex applications | Uses only .then() clause |
1162
+
| Provides chaining and subscription to handle complex applications | Uses only `.then()` clause |
1163
1163
1164
1164
**[⬆ Back to Top](#table-of-contents)**
1165
1165
@@ -1186,7 +1186,7 @@ You can download the PDF and Epub version of this repository from the latest run
1186
1186
**[⬆ Back to Top](#table-of-contents)**
1187
1187
1188
1188
46. ### How do you perform error handling in observables?
1189
-
You can handle errors by specifying an **error callback** on the observer instead of relying on try/catch which are ineffective in asynchronous environment.
1189
+
You can handle errors by specifying an **error callback** on the observer instead of relying on `try`/`catch`, which are ineffective in asynchronous environment.
1190
1190
1191
1191
For example, you can define error callback as below,
1192
1192
```javascript
@@ -1198,8 +1198,8 @@ You can download the PDF and Epub version of this repository from the latest run
1198
1198
1199
1199
**[⬆ Back to Top](#table-of-contents)**
1200
1200
1201
-
47. ### What is the short hand notation for subscribe method?
1202
-
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.
1201
+
47. ### What is the shorthand notation for subscribe method?
1202
+
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.
1203
1203
1204
1204
For example, you can define subscribe method as below,
0 commit comments