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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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