JavaScript JavaScript Basics Working with Strings Combine Strings and Template Literals Review

TERRELL BRIGGS
TERRELL BRIGGS
5,337 Points

Recreate code using temperate literal interpolation

const name = "Aneesah"; let message = "Hello " + name + ". How are you?"; Complete the code below to recreate the above code using template literal interpolation:

const name = "Aneesah"; let message = Hello . How are you?;

1 Answer

connor ingold
connor ingold
5,381 Points
  const name = "Aneesah"; 
  let message = `Hello ${name} How are you?`; 

You forgot to add the ${ } :)