score:1

Accepted answer

If template literals are not supported, just build the path by concatenating Strings and variables as you would have done prior ES6:

path = "M " + s.y + " " + s.x + " C " + ((s.y + d.y) / 2) + " " + s.x + ", " + ((s.y + d.y) / 2) + " " + d.x + ", " + d.y + " " + d.x;

Related Query

More Query from same tag