Eval is Evil, so use this instead new Function("alert('Hello, world!');")(); from slide 48: coding while you commute See also IIFE