RJ on Nostr: What would be the use case/ reason to choose .then and .catch over try/catch for ...
What would be the use case/ reason to choose .then and .catch over try/catch for async operations in #javascript #TypeScript
Published at
2024-02-09 07:17:08Event JSON
{
"id": "36a86864283e8d0b241c0fc79f83cae0d0216376694565ffdbe0a3cea4734de2",
"pubkey": "5f907109b1c9fc681cd7f81db43ca1cc9c57530e2dc5c3e6674aed30f907e9e3",
"created_at": 1707463028,
"kind": 1,
"tags": [
[
"t",
"javascript"
],
[
"t",
"typescript"
],
[
"proxy",
"https://fosstodon.org/users/RemeJuan/statuses/111900297008971760",
"activitypub"
]
],
"content": "What would be the use case/ reason to choose .then and .catch over try/catch for async operations in #javascript #TypeScript",
"sig": "2dd00f9278b49ccbd5f89751495e0f78aa038b626b1775267822200d15ecb0aa5e108a21cda4cce96cf1605be5d00883d99f350695ea57c733292e65e8acf11e"
}