|
it's a function that I write, but don't call? why would I write it then?
|
# ¿ Jul 22, 2017 05:12 |
|
|
# ¿ Apr 29, 2024 12:06 |
|
i called the function but it's not working
|
# ¿ Jul 22, 2017 05:17 |
|
i'm a front end developer with 5 years of experiience, if this "callback" thing were actually useful i'd hvae heard of it by now
|
# ¿ Jul 22, 2017 05:24 |
|
pls help, "myCallback" is the callback function i wrote and i'm calling it but it doesnt work the way its supposed tocode:
|
# ¿ Jul 22, 2017 05:28 |
|
but then how do i call it
|
# ¿ Jul 22, 2017 05:33 |
|
ok i put the call after the timeout like you said but it's still happening too sooncode:
|
# ¿ Jul 22, 2017 05:38 |
|
i took the call out and moved it inside the callback function so that setTimeout will call the functioncode:
|
# ¿ Jul 22, 2017 05:52 |
|
pbbt i'm just gonna look for a JS library that spares me all this "callback" nonsense
|
# ¿ Jul 22, 2017 06:12 |
|
|
# ¿ Apr 29, 2024 12:06 |
|
got it workingcode:
|
# ¿ Jul 22, 2017 08:47 |