I’m stuck in this course. Idk what to do. I don’t understand the tasks. When I use the
myAdjective and so on, the third task checks but the fourth task doesnt. When I do this code the fourth task checks but the third class doesnt. Please give me a solution.
Your code so far
const myNoun = "dog";
const myAdjective = "big";
const myVerb = "ran";
const myAdverb = "quickly";
// Only change code below this line
const wordBlanks = "big" + " " + "dog"+ " " + "ran"+ " " + "quickly!"; // Change this line
// Only change code above this line
Challenge: Word Blanks
Link to the challenge:
Hello @Vira_404 , rather than asking for a solution, which won’t really help you; why don’t you post the code you have tried, and we can try helping with what you have?
//When using numbers
a = 1 + 1 // a is result of 1 + 1
b = 5 // b is result of 5 +- nothing
c = a + b // c is result of a + b (7 in this case)
//When using letters
a = "Pretty " //a is result of "Pretty "
b = "words" //b is result of "words"
c = a + b //c is result of a + b ("Pretty words")
If you just replace the word strings with the corresponding variables (the variables that contain those words) the challenge will pass.
Just remember, the variables should not be inside strings (i.e. quotes
well i tried that before but it doesn’t work. But I tried it again this time and it works for some reason. But Thank you
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.