[Vuejs]-Multiply string in js which is both multiplier and multiplication operator

1๐Ÿ‘

โœ…

you can also use eval() function in javascript

like โ€”

eval("x + 17")

0๐Ÿ‘

You can use eval() in JS too. Usually it is not a good idea if it is not mandatory, but it works.

Leave a comment