We`ve come a long,long


#1


https://gist.github.com/b656c65b73e6a92678366926d7cf5c1f


Replace this line with your code.


It said there was some problem with my syntax,
Here is my syntax,what`s wrong?

var answer = true;
var answer = function ()
{
if (3 * 90 === 270)
{
console.log (answer);
}
else if (!false && (!false)));
{
console.log (answer);
}
else ("bex".toUpperCase() === "BXE");
{
console.log (answer);
}
}


#2

Problem is here:

else if (!false && (!false))); // 2 syntax errors

Should be:

else if (!false && (!false))

EDIT. Also you declared var answer twice:

var answer = true;
var answer = function () { }

So, you haven't variable answer, you have only function answer(). You need rename your variable or function. And don't forget to call the function!


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.