Problem with excercise 1


#1


https://www.codecademy.com/courses/spencer-sandbox/0/1?curriculum_id=506324b3a7dffd00020bf661#


I have problem with this code and I don't know what I'm doing wrong...
I've get always an errror:
Oops, try again. You seem to have gotten the wrong answer. Check the hint for some help!
I do not know where i got wrong.
Thanks for help


(((3 * 90) === 270) || !(false && (!false)) || "bex".toUpperCase() === "BEX");

var answer = "true";

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


#2

you need one line of code in your editor, this:

answer = true;

or:

answer = false;

depending on if this condition:

(((3 * 90) === 270) || !(false && (!false)) || "bex".toUpperCase() === "BEX");

is true or false, the value for answer should be a boolean value, not a string


#3

Thanks for help :slight_smile:

And I spend two days trying to do this :smiley:


#4

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