« first day (5148 days earlier)      last day (22 days later) » 

01:25
 
13 hours later…
13:58
hi
@TUSHARLADVA Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
5 hours later…
18:49
hi
@Manoj1997 Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
Can anyone help me with this ?

https://stackoverflow.com/questions/79204564/issue-with-javascript-audio-output-on-mobile-devices-considered-as-call-volume
 
2 hours later…
20:24
Hi all
If you call a fn that returns a Promise like this, do you have to have a .then with a resolve? Or if the fn call returns resolve/reject, it'll handle it?
return fnThatReturnsPromise()
	.catch(...);
I don't need to do anything with the results of the fn, just for it to run successfully. So I don't need a .then but wasn't sure
And I want it to process that and return to the caller of this outer fn
Confused yet?
the question is unclear
if you don't care if it finishes, there's no need to add handlers/callbacks to run when it finishes
it will return to the caller immediately regardless
Oh okay. Thanks
Does it need a return resolve() in a .then?
That's what was confusing me
.then creates a new promise, that then gets returned instead of the original
20:37
Oh
That makes sense
the chatbox keeps gobbling up my messages
the primary purpose of .then is to act as a sort of filter that modifies the existing promise
foo().then(doThis, orOnErrorDoThat); // returns a promise that resolves when `doThis` or `orOnErrorDoThat` resolves (based on whether foo resolved or rejected)
i can't seem to format things as code
there we go. dark chat extension was conflicting

« first day (5148 days earlier)      last day (22 days later) »