I am working with an array that contains mathematical signs.
var signs = ['+', '-', '*', '/'];
In addition, I have two variables representing digits to combine with each sign from the array.
var right_digit = 1;
var left_digit = 5;
I am curious if it is possible to perform the following operation in JavaScript:
var answer = left_digit + sign[0] + right_digit;