Message from JavaScript discussions

March 2019

— $("#yourBtn").on("click", function() {
$(".table_cell").empty().text("some text");


Hey i am learning promises and i wanted to know if the resolve function can return an object to the then method?

— Yes

— It can

— The only thing it can't do is another promise

— Hey i am sending you a screenshot it's giving me an error in line 22

— Semicolon on line 21

— Shouldn't be there

— Also, that's some weird code

— Yeahh that was only for a practice from a video

— It was faking ajax calls

— Thanks