Yo, (scarf) dog. I heard you like functions, so I put a function in ur function so that you can function while it functions. < / oldMemes >&...
For further actions, you may consider blocking this person and/or reporting abuse
Nice, this is the beauty of JavaScript. Passing in functions as arguments make the language to do some interesing stuff..
Also not relevant to composition but using switch statement is better inside eevee function since there are more than 2 different conditionals.
Higher order functions are not unique to JavaScript tho, so it's just a really nice feature.
Good to know :)
True. I wanted to use the switch function, but since my friend was a complete newbie and was already inundated with all the info, I stuck with what she knew: if/else. lol
I'm new to Dev world as well, And your example was explained really well, But I didn't understand why the Evolution function needs a second argument in it's definition.. As we are prompting the user to input the second argument.
I was under the thought that I needed a “holder” for the prompt so we can pass that through the individual Pokémon function to get their evolution result.
Also, I wanted to help my friend meet assignment requirements, which asked for 2 arguments.
But, I should definitely try it out without the second parameter.
*article
Ohhh my god lmao those 3 idiots.
I loved this. Absolutely loved it. But I'm pretty sure I need a lie down - never was any good at Pokemon :)
I can't even with the latest stuff with "IV"s and shiny hunting stuff these days. But I'm glad you enjoyed the article!!
Awesome wat of explaining this!
Thank you!!!
OMGGGG I loved, I love explain things using pokemon too, your article was very good, I will share it with the people of the Brazilian communities <3 Tnkss Cat
I always forget that .map(), .split(), .join(), and .reverse() are examples of function compositions. But your Pokemon references really helped me understand them more!
I'm glad it helped!! :)