javascript function from string

JavaScript
var addition = Function("a", "b", "return a + b;");
alert(addition(5, 3)); // shows '8'

Source

Also in JavaScript: