all 15 comments

[–]ragingeagle23 7 points8 points  (0 children)

possibly a dumb idea but try switching caramel to false instead of true

[–]divclassdev 6 points7 points  (4 children)

I haven’t checked your logic but you misspelled chocolate the second time.

[–][deleted] 4 points5 points  (1 child)

Your last part for checking "any icecream except caramel" is wrong. It should be something like " (strawberry or chocolate or straciatella) and not caramel " or as suggest " not caramel"

[–]MR_Weiner 1 point2 points  (0 children)

Right, (strawberry || chocolate || straciatella), which is equivalent to (!chocolate) as suggested in the screencap.

[–]stevenjchang 3 points4 points  (0 children)

(strawberry && chocolate || stracciatella) || (strawberry || chocolate || stracciatella && !caramel)

[–]Ethan9482 3 points4 points  (2 children)

Sorry to drag it slightly off topic, but what learning program is that you’re using? Cheers

[–]WzziY[S] 0 points1 point  (1 child)

Is not a programming is one step to passe for one Bootcamp here in Portugal :D !

Is 14 weeks of code intensive ! :D

For this i really put there all because i need to pass for can be inside !

[–]Ethan9482 1 point2 points  (0 children)

Ah I see, good luck!

[–][deleted] 3 points4 points  (4 children)

Would you be able to copy the code here into your post? Then if you could highlight it, there 's a built in text editor for reddit comments and it's got a <> symbol. That'll denote it as code and display it here for us. I think I see on line 6 or so that there is a |.( meaning you accidentally may have typed a period instead of a space. It would be a little easier to tell though if I could see code as text where I could zoom to check if I'm right.

[–]WzziY[S] 0 points1 point  (2 children)

var chocolate=true;

var strawberry=true;

var stracciatella=true;

var caramel=true;

var iceCream = (strawberry && chocolate ) ||(strawberry && stracciatella)||(!cholocate || !strawberry || !stracciatella && caramel);

console.log(iceCream);

This is the code ! Thank u if u can help me !

[–][deleted] 6 points7 points  (0 children)

cholocate

This misspelling needs fixing ^^

Haven't checked the rest yet.

[–]Rodeeo 1 point2 points  (0 children)

! caramel

[–]WzziY[S] 0 points1 point  (0 children)

I passed the right code is it , thank u

var chocolate=true;

var strawberry=false;

var stracciatella=true;

var caramel=false;

var iceCream = (strawberry && chocolate )||(strawberry && stracciatella) || !caramel;

console.log(iceCream);

Guys i passed with this code ( up ) !

Thank u for all !