Strings and template literals

What does the example greeting display?

Examples

Worked example

Input
name = 'Mira' and count = 2
Expected output
Mira has 2 books.

Hints and solution

Hint 1

Write down the starting state and walk through one example by hand.

Reveal worked answer

The template inserts Mira at the first placeholder and 2 at the second.

Back to the lesson