eval() 可把字串當作 JavaScript 表達式執行。
eval("document.write('JavaScript')");
它有返回值;若字串不是表達式,會回傳 undefined。實務上較少使用,了解即可。