|
@@ -152,7 +152,9 @@ function eval(userVariableInit){
|
|
|
}
|
|
|
console.log(k);
|
|
|
console.log(d);
|
|
|
+
|
|
|
userVariable.splice(userVariable.indexOf("("), 2,eval(userVariable.splice(userVariable.indexOf("(") + 1, d - userVariable.indexOf("(") - 1)));
|
|
|
+
|
|
|
}
|
|
|
while(userVariable.indexOf("(") > -1)
|
|
|
userVar = userVariable;
|
|
@@ -187,7 +189,7 @@ function eval(userVariableInit){
|
|
|
{
|
|
|
p--;
|
|
|
c++;
|
|
|
- array[p] = userVar[i] + array[p];
|
|
|
+ array[p] = array[p] + userVar[i];
|
|
|
bool = true;
|
|
|
|
|
|
}
|