Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

LEVEL 3 > LESSON 8

let str1 = 'ambush';
let str2 = 101;
let str3 = false;

let str4 = str2 +' '+ str3 + str1;
console.log(str4);
console.log(typeof str4);


it is showing below error message

Your code's output does not match the expected outcome for this exercise.
by

1 Answer

sam5epi0l
It is because you are not supposed to add this console.log(str4); in the code.
Here is the correct code:

let str1 = 'ambush';
let str2 = 101;
let str3 = false;

var str4 = str2 + ' ' + str3 + str1;
console.log(typeof str4);

Login / Signup to Answer the Question.