Szabadúszó: arifjaunpur
Megosztás:
Nevezés Jelentése

Access result using Promise

As we know that JavaScript is async in nature, we can not access results outside of callback function, we need to use Promise and then you can access, even you can use async/await with the help of Promise

#1. pályamű a(z)                                                  Retrun variable into main
                                             versenyre

Nyilvános pontosítófelület

  • haxus
    A verseny kiírója:
    • 5 év telt el

    but the var needs to be printed here, outside of ANY function

    • 5 év telt el
  • haxus
    A verseny kiírója:
    • 5 év telt el

    Here is again the var jailed deeply inside another function.

    • 5 év telt el