I tried to write a computation mathematical expression and store each sign into an array.
For example, I want to convert the array:
let arr = ['10', '-', '(', '2', '+', '1', ')', '*', '3'];
To the following expression:
let result = 10 - (2 + 1) * 3; // 1
Any suggestions on how to achieve this?