However when I write the code to Checkio editor I keep getting errors.
When I run and save I get the correct output on the console but on the righthandside it reads: NoExecFunction
Any thoughts?