Foundations

Template Literals

Template Literals

Template literals use backticks. They let you place values inside a string with ${}, which keeps many messages easier to read than repeated concatenation.

Your task: Use a template literal to create notification from the provided product and count values. The sentence should report the count and product name. Log the notification.

Free with a JS Exercises account

Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.

By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.

Template Literals

Template literals use backticks. They let you place values inside a string with ${}, which keeps many messages easier to read than repeated concatenation.

Your task: Use a template literal to create notification from the provided product and count values. The sentence should report the count and product name. Log the notification.

Free with a JS Exercises account

Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.

By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.

Console

Run code to see output.