DEV Community

loading...

Discussion on: Type | Treat Challenge 5

Collapse
mattiasbuelens profile image
Mattias Buelens

Looks like there might be an unintentional typo in the intermediate challenge?

movieNight.getVHSForHocusFocus()

kidsMovieNight.getVHSForHocusFocus()
Enter fullscreen mode Exit fullscreen mode

These should say "HocusPocus" instead of "HocusFocus", right?

Collapse
orta profile image
Orta

Heh, thanks, they were intentionally wrong - but maybe I should have made it a bit more obvious that it was supposed to be unexpected.

The F vs P look so similar, and in the original version of this code it would have crashed before this code would have evaluated. Causing a double whammy from the any.

Next time I'll make it more obvious 👍