Use Replit or write code in a local JS file to complete these challenges. JS Bin doesn't handle callbacks well (it throws SyntaxError: Unexpected token {
even though the code works elsewhere), and Code Pen has a finnicky console: https://repl.it/languages/nodejs
For a version of these questions with hints, use this gist: https://gist.github.com/SnoopSqueak/26824b4bde4071f967100ae3f9628798
- Write a function
getIsWordOdd
that takes in a string and returnstrue
if the word contains an odd number of characters orfalse
if the word contains an even number of characters.
Sample calls: