Which basically means that a function is equal to the value it returns. Been thinking a lot on how a function can be equal to a primitive value but couldn’t come up with an answer. So, I gave up and looked into the spoiler code which had the solution.
Apparently, there’s a method called
Here’s the code that explains this.
And, of course, if you use
=== instead of
answerToEverything === 42 will return false, because
=== will match both value and type.