Adding to an existing switch, with Pokemon


#1


This isn't a question just wanted to show how you can change some of the preset code to fit your personal interests.


https://www.codecademy.com/en/courses/javascript-beginner-en-qDwp0/1/1?curriculum_id=506324b3a7dffd00020bf661


var color = prompt("What's your favorite Pokemon team?","Type your favorite Pokemon team here");

switch(color) {
  case 'red':
    console.log("EWWWW team valor!!!!");
    break;
  case 'blue':
    console.log("Are you bandwagoning with team mystic?");
    break;
  case 'yellow':
      console.log("Ah so you're team instinct, I see");
      break;
  default:
    console.log("Thats not a pokemon team you dingus!");
}


#2

@cavemanpotter
Nice :slight_smile:


#3

Yup just making code more fun than it already is :grin:


#4

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