Syntax object.eval(string) The eval() method evaluates a string of JavaScript code in reference to this object.