

Lesson 02 · 12 min
Strings and numbers
Build text from data without getting NaN in the output.
12 minLesson 2 of 10Practice includedAsk AI on any point
Almost any interface is text built from data: "tea: 3 pcs — 450 ₽". Gluing it together with pluses is awkward, and it's easy to mess up the spaces. That's what template strings are for.
Sign in to continue
The rest of this lesson opens after sign up
The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.