We've come a long,long


#1

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

The error; You seem to have gotten the wrong answer. Pls check the hint for tips.
I do not know where i got wrong. As far as i know, the answer is true.
PLS HELP.
Thanks.


(((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

Variable name should be assigned to boolean value that this long expression evaluates. So you just need assign this expression to variable name.


#3

(((3 * 90) === 270) || !(false && (!false)) || "bex".toUpperCase() === "BEX");
var answer = "something"; //Replace 'something" with either true or false.

View the code above. There is no need for all the complicated stuff :slight_smile:


#4

Thanks guys. I guess i think too much haha.


#5

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