#More readable?

5 messages · Page 1 of 1 (latest)

hollow wharf
#

I don't see why concatenate with template literals is more "readable" than with "+"... Is this because I'm misunderstanding the term "readable"? Do they maybe mean easier and more efficient to read for the machine? Or is it just me still having python in the back of my head?

sacred fulcrum
#

it's not super clear in that example but as you have more variables in the text the template literal version looks relatively close to the output by comparison

hollow wharf
#

because of the lack of "' + "," + "' ?
I'm learning about string interpolation now... seems like the preferable style for me, I think

craggy matrix
hollow wharf
#

right..., but there I think it reads fluently where I didn't feel like the whole ${} made things more readable, but I suppose tsunami made a good point ^^