I have a string in Javascript. What I need is to save it as code:
var string = "this.count++";
var func1 = {};
func1['f'] = string; // should be saved as executable code..
How can I do? I don't need eval(), cause I don't need to evaluate in this moment.