← Back to challenges

Noddy's Mystery Function

JavaScriptHardstringsvalidation

Instructions

Noddy has written a mysterious function which takes in a word and returns true if it's passed a specific test. Solve the riddle of what Noddy's function is by having a look at some of the examples below.

Examples

noddyFunction("FANTASTIC") ➞ true

noddyFunction("wonderful") ➞ false

noddyFunction("NODDY") ➞ false

Notes

  • Check the Tests tab for more examples.
  • This isn't really a coding challenge, more of a fun riddle ;)
javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: String Flips