-2👍
You can use callback function for Func1 or can use an alternative method to call function with Promise as :
Func1(Func2)
Or
Promise.resolve(Func1()).then(Func2)
Source:stackexchange.com
-2👍
You can use callback function for Func1 or can use an alternative method to call function with Promise as :
Func1(Func2)
Or
Promise.resolve(Func1()).then(Func2)