Eval command in javascript

Is there a way to use the eval command in codecombat levels? I prefer using the Ternary operator over if statements because I like to write my code in a way that it will change itself and to that I need the eval command.

I think some errors and warnings can be ignored:


How do you want to use eval?