Tell us what’s happening:
I feel like I am doing it correctly, but it is claiming that I am not making a function. Can anyone please help?
Your code so far
function ReusableFunction(){
console.log('Hi World');
}
reusableFunction();
var myList = [];
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36.
Challenge: Shopping List
Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/shopping-list
Your link and your screenshot don’t match up. Which challenge are you doing?
If you’re doing the reusable function challenge, you have a typo in your capitalization of your function name.
auto correct got me there. I was literally attempting to paste the solution someone else wrote in and it was saying I didn’t define the function. I fixed it and it works now. Thank you!
Blindly copy-pasting will cause you incredible headaches.
For sure! For some reason, it kept saying my original function “was not a function” so out of desperation I tried to see if resetting it and using a "solution would help. Thanks!