This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Animate Your Name Forum

View Course » View Exercise

48 points
Picture
Submitted by
treif
over 3 years ago

12/15 I can't figure out the if/else

I can't figure out the if/else


4 votes

permalink

if(10 < 3) {
    bubbleShape = "square";
}
else {
    bubbleShape = "circle";
}

That's what worked for me :/

918 points
Cc87e0e58cdf26aa3869a4ccd80bb2a3?s=140&d=retro
Submitted by
eternalLocket
over 3 years ago

2 Comments

2334b6f47da94e7784d7f5c11b3a7865?s=140&d=retro Dason Hrynkiw over 2 years ago

thanks!

546f340c9c4e9db8cc002311_822387230 Ben Sivyer over 2 years ago

Thanks!


2 votes

permalink

Shouldn't it be...

if(10 < 3) {
bubbleShape = "circle";
}
else {
bubbleShape = "square";
}

118 points
D6ececb6a28939c7478c5474e65bcaea?s=140&d=retro
Submitted by
_shockinq
about 3 years ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy about 3 years ago

If you want square bubbles then this code will give you that.


0 votes

permalink

This is what I have and it passed

var num =10;
if(10 = num) {
    bubbleShape = "circle";
}
else{
    bubbleShape = "square";
}

555 points
D8ebc2d0f99137592cc7fcd036496e21?s=140&d=retro
Submitted by
hiimrebekah
over 3 years ago