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

Level 6 lesson 6 someone please help

We have provided two strings given to variables. And we have provided a console.log() statement too. We want you to use the variables txt1 and txt2 along with a comparison operator in a if condition, so that the console.log() statement is executed.
let txt1 = 'Yokozuna';
let txt2 = 'Yokohama';

{
console.log("Both are same");
}
by

6 Answers

kshitijrana14
Try this one

let txt1 = 'Yokozuna';
let txt2 = 'Yokohama';

if(txt1.length==txt2.length){
console.log("Both are same");
}
fatuga
The above answer keep saying "try again"
fatuga
We still need help
fatuga
We still need help
fatuga
We still need help
fatuga
We still need help

Login / Signup to Answer the Question.