28/28


#1

The error message I'm getting is
SyntaxError: Unexpected token else

What did I do wrong?

Here's the code

var myName = "David"
{
if (1 + myName.length % 2)
console.log("doot doot");
}
else
{
console.log("no doot doot");
}


#2

You're supposed to have the bracket after the "if" statement.