Question about my code regarding magic eight ball project


Hello,
Guys can someone check my code from Magic Eight Ball project please.
My code seems to run fine but I started wondering if there is some shorter way of performing same code or my code is ok like that, please advice with this one. I used if…else statement there, please see uploaded photo.

You could keep the responses in an array and then assign eightball to responses[randomNumber]

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