If you want to solve arithmetic expressions in JavaScript, we have an eval() function for that but to understand the logic let's implement our function which solves arithmetic expressions in the exact hierarchy that needs to be solved from brackets t...