Describe your issue in detail here.
im confused on how to do the word blanks part wordBlanks should contain all of the words assigned to the variables myNoun , myVerb , myAdjective and myAdverb separated by non-word characters (and any additional words of your choice).
Your code so far
const myNoun = "dog";
const myAdjective = "big";
const myVerb = "ran";
const myAdverb = "quickly";
// Only change code below this line
const wordBlanks = ""; // Change this line
// Only change code above this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
This is an exercise which demonstrates how you can construct a string using both variables and strings.
EXAMPLE:
let myName = "igorgetmebrain";
let myGreeting = "Hello, my name is " + myName + "!";
console.log(myGreeting); // "Hello, my name is igorgetmeabrain!"
This means that you can create dynamic strings, which respond to different variable values. If I reassign the variable myName with a different string value, the string myGreeting will change accordingly.
So, for this challenge, you can build a string by piecing together other strings, with variables interpolated, as in the above example. Note that when you concatenate variables onto strings, you do not include quotation marks around the variable names. Also, ensure that you allow for spaces between words by adding the required spaces into your strings (as above) so that the words don’t all run together.