I see an error. "hadc0ffee" is neither hexadecimal nor matches that regex. Am I missing something?
isHexadecimal("HADC0FFEE"); // falseEdit: I was curious, so I looked through the linked docs for regex. They have the exact same pattern for checking hex in there as they do in this one. I guess it was just an error after all?
But I do get false, running it in chrome dev tools.
When they're talking about writing documentation for tricky subjects, this misses a bit. I have no clue what the joke is, other than, if you haven't had coffee, you might think this evaluates to true?