Code generation in JavaScript, or "eval() considered useful" If ever a feature of JavaScript was considered harmful, it's eval(). It's so commonly abused that if I'm interviewing a JS web developer, I usually ask something along the lines of "what is eval(), and why shouldn't you use it". It's so commonly abused that Yahoo JavaScript architect Douglas Cronkford considers it "evil", and his JavaSc