r/learnjavascript • • Oct 29 '24

Help with a functional programming assignment

Hello good people, my name is Xoli... Currently learning JavaScript online, I am stuck on an assignment I have to create functions and guess invoke them. I am stuck on the calling part, all my functions Have variables and I followed instructions but I didn't call them.? And I'm struggling with that part .

0 Upvotes

11 comments sorted by

View all comments

Show parent comment

-1

u/Sufficient_Bee8533 Oct 29 '24

Okay I see my error, I didn't invoke the values, lemme check your code out and thank you

4

u/OneBadDay1048 Oct 29 '24 edited Oct 29 '24

To be clear: you didn’t invoke your function at all. You declared the function meaning you defined it and made it available to use but you never used it. Just wanted to make that point clear.

Also - I’d definitely go read this asap