Posts by Matheus C. B. • 21 points
1 post
-
1
votes2
answers59
viewsA: Javascript. Changing a string to an operator
You can split by the operator, the resutlado will be a string array with the values: var string = '15 + 15 + 15'; var convert = string.split('+'); // convert > ["15", "15", "15"] // para somar:…
javascriptanswered Matheus C. B. 21