I do not really have any knowledge about Javascript other than trial-and-error experience according to the functions I needed. However I'm stuck with my math calculations now, as I need to be able to do calculations that contain unknown variables i.e. var z="z".
Is there any way it would be possible to do the calculation with unknown variables like a normal calculator can?
A simple example of what I need:
var a="a";
var c="c";
//a and c should not necessarily be a string
c=50+a-100;
// output: c=a-50, instead of c= NaN
Any help is much appreciated.