Introduction to Objects I


#1


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


Getting error message that this is wrong. Can someone help with this exercise? Not sure how to get past it. Many thanks in advance!


Replace this line with your code. 
(((3 * 90) === 270) || !(false && (!false)) || "bex".toUpperCase() === "BEX");

var answer = function (guessSomething) {
    if ((guessSomething === 270) || (guessSomething = true) || (guessSomething === 'BEX')) {
        return 'true';
    }
    else {
        return 'false';
    }
};

answer('BEX');


#2

all you have to do, is manually evaluate this expression:

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

depending on if this condition is true or false, declare a variable answer and set it to true or false

Then delete the expression


#3

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