
Please see attached image for instructions. I'm currently a student studying for web development, I've noticed parameters being called arguments when I was under the impression, you create the argument outside of the bracket. Is this true?
How do I got about selecting parameters for a function? For example, I cannot get a console.log when I add parameters into this function in the image.
I'm also having trouble returning a specific "flavor of ice cream" with an index number. When, I attempt to do a console.log, it returns the flavor from the preset array above in the assignment.
Any tips? I need a better understanding of this going forward. Thank you for your help.
function getFlavorByIndex(){
console.log(originalFlavors[2])
}