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
Inside the constants.js file, create four const variables for the urls listed above. Make sure they are in upper case snake case. Make sure all four variables are named exports.
For example,
export const VARIABLE_NAME1 = url goes here
export const VARIABLE_NAME2 = url goes here
export const VARIABLE_NAME3 = url goes here
Then in the index.js file, import all of those variables.
What work needs to be done?
There are 4 urls we will be working with that represents the data we will be displaying to the user.
Forum topic url
https://forum.freecodecamp.org/t/
Forum category url
https://forum.freecodecamp.org/c/
Forum avatars url
https://sea1.discourse-cdn.com/freecodecamp
Forum API
https://forum-proxy.freecodecamp.rocks/latest
Inside the
constants.js
file, create fourconst
variables for the urls listed above. Make sure they are in upper case snake case. Make sure all four variables are named exports.For example,
Then in the
index.js
file, import all of those variables.Here is a helpful resources for imports/exports
https://bobbyhadz.com/blog/javascript-export-function
The text was updated successfully, but these errors were encountered: