AC SFDC
AC SFDC
Sep 4, 2018 · 1 min read

When I had tried your same code with small tweak in setTimeout delay. The results was very strange. Ideally the output should not changed on changing delay value.

Clarify why the results showing different seq. e.g. I had set delay of 5000 for 2nd promise or set 5000 for 1st promise

“””” > “Results = “ Array [“ first promisemy”, “ first”, “ first promise”] “message = “ “ first promisemy” > “Results = “ Array [“ first”, “ first promisemy”, “ first promise”] “message = “ “ first promisemy” > “Results = “ Array [“ first promise”, “ first”, “ first promisemy”] “message = “ “ first promisemy”

    AC SFDC

    Written by

    AC SFDC