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
There are a few places where you could abstract out parts of your functions into smaller functions.
This makes your code cleaner, easier to read and see where things live, easier to modify and easier to test.
So for example, your API url is being created in your XHR request. This could be abstracted out into a createAPIUrl function and then tested to make sure it's being built correctly every time.
The text was updated successfully, but these errors were encountered:
There are a few places where you could abstract out parts of your functions into smaller functions.
This makes your code cleaner, easier to read and see where things live, easier to modify and easier to test.
So for example, your API url is being created in your XHR request. This could be abstracted out into a
createAPIUrl
function and then tested to make sure it's being built correctly every time.The text was updated successfully, but these errors were encountered: