Pavel 7 years ago
parent
commit
7535b66ac0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      js06/js06.md

+ 3 - 1
js06/js06.md

@@ -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;
 					
 				}