I have looked through string methods, but couldn't find any method to throw the string value out of its scope. Is there any function to unString the string in JavaScript? For instance if I receive a calculation in a string form from another file:
var five = 5
var three = 3
var calculation = five * three;
var string = 'calculation * 1232123 - five + three';
How can I store that received string in a variable where those values get out of string scope and get calculated? Is there a way or is there a method to do so?