I am trying to get an integer from a JSON and multiply it with a number that has an exponentiation. However, it gives me
let dec = 10 ** _decimals;
SyntaxError: Unexpected token *
The code is the following:
let dec = 10 ** _decimals;
let value = parseInt(req.body.burn_value) * dec;
I can't figure out why it is doing that. What am I doing wrong?
**is not multiplication -> developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…Math.pow, for example;Math.pow(10, _decimals)let dec = 10 ** _decimals;looks like JavaScript.