28 Part 2


it says that didnt log correct string
here is the code

var nome = "Ricardo Ribeiro"
if (nome.length = 15)
console.log("Nome certo")
console.log("Nome errado")


when comparing two values you must use == or ===. The = sets things.

So in your if statement you are literally setting nome.length to 15 which would produce an error :slightly_smiling: .

putting ; after all of lines is a good habit too.

no need for a semi-colon on the bracket before the else though since that would close the if else statement before it finished.