var numbers = "3+3/2";
console.log(numbers);
var numArr = numbers.split(" ");
console.log(numArr);
numArr.splice(1, 3, '1');
console.log(numArr);
numbers = numArr.toString();
console.log(numbers);
var numbers = "3+3/2";
console.log(numbers);
var numArr = numbers.split(" ");
console.log(numArr);
numArr.splice(1, 3, '1');
console.log(numArr);
numbers = numArr.toString();
console.log(numbers);
I am trying to convert the whole string into an array. Then use the splice to edit the numArr Then change the original string, numbers