Test name | Executions per second |
---|---|
string-interpolation | 9876194.0 Ops/sec |
string-concatenation | 9633510.0 Ops/sec |
var luckyNumber = Math.round(Math.random() * 100);
`your lucky number for today is: ${luckyNumber}`
'your lucky number for today is: ' + luckyNumber