Migrate a JavaScript String from concatenation to ES6 interpolation.
Start file
let world = 'world';
console.log('hello ' + world);
console.log('bye ' + world + '!');
End file
let world = 'world';
console.log(`hello ${world}`);
console.log(`bye ${world}!`);
2,3c2,3
< console.log('hello ' + world);
< console.log('bye ' + world + '!');
---
> console.log(`hello ${world}`);
> console.log(`bye ${world}!`);
Unlock
24 remaining solutions by
signing in and submitting your own entry
96 active golfers, 324 entries
24
08/27/2024 at 05:31AM
25
08/27/2024 at 05:31AM
26
08/27/2024 at 05:31AM
27
08/27/2024 at 05:31AM
28
08/27/2024 at 05:31AM
29
08/27/2024 at 05:31AM
30
08/27/2024 at 05:31AM
31
08/27/2024 at 05:31AM
32
08/27/2024 at 05:30AM
33
08/27/2024 at 05:30AM
35
08/27/2024 at 05:30AM
37
08/27/2024 at 05:30AM
39
08/27/2024 at 05:30AM
45
08/27/2024 at 05:30AM
46
08/27/2024 at 05:30AM
52
08/27/2024 at 05:30AM
56
08/27/2024 at 05:30AM
57
08/27/2024 at 05:30AM
66
08/27/2024 at 05:30AM
70
08/27/2024 at 05:30AM
75
08/27/2024 at 05:29AM
77
08/27/2024 at 05:29AM
87
08/27/2024 at 05:29AM
99
08/27/2024 at 05:29AM