alert('The outcome of evaluating ${num1} ${operator} ${num2} is ${eval(`${num1} ${operator} ${num2}`)}');
Although I am using the eval() function to perform operations on two numbers (where num1 and num2 are numerical values and operator can be either +, -, *, or /), it seems like there is an error in my code. Can anyone spot the mistake?