You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pretty smart to look at what the response look like and then to call a different function based on that.
Alternatively, you could pass two parameters to mainRequest. 1 being the targetPage and 2 being the callback function. That way you can tell mainRequest which function to pass the resulting data to. This is also described in the week 6 assignment.
The text was updated successfully, but these errors were encountered:
Pretty smart to look at what the response look like and then to call a different function based on that.
Alternatively, you could pass two parameters to mainRequest. 1 being the targetPage and 2 being the callback function. That way you can tell mainRequest which function to pass the resulting data to. This is also described in the week 6 assignment.
The text was updated successfully, but these errors were encountered: