I am making something like calculator, i am saving first value last value and also the operator (+, -, \*, /) in variable, but its not giving me the desire result.

```
    var firstValue =$('#rt').text();
        var lastValue =$('#tr').text();
        var calculate = firstValue  r  lastValue;
        console.log(calculate);

        });

```

The output in console log showing something 6\*4 but i want to show the calculation result which should be 24, any help please ? Thanks in advance.