title: Iteration Javascript objects
body: <p>Write a function that can take any number of episode ids as input and
  returns all the information about those episodes.</p>
  
  <p>After taking inputs from the user as multiple id numbers, it doesn't give output as the information about all episodes</p>
  
  <pre><code>let BigBang =  { 
      "_embedded": {
          "episodes": [
            {
              "id": 2913,
              "name": "Pilot",
              "season": 1,
              "number": 1,
              "airdate": "2007-09-24",
              "airtime": "20:30",
              "airstamp": "2007-09-25T00:30:00+00:00",
              "runtime": 30,
  
  
              "_links": {
                "self": {
                  "href": "http:\/\/api.tvmaze.com\/episodes\/2913"
                }
              }
            },
            {
              "id": 2914,
              "name": "The Big Bran Hypothesis",
              "season": 1,
              "number": 2,
              "airdate": "2007-10-01",
              "airtime": "20:30",
              "airstamp": "2007-10-02T00:30:00+00:00",
              "runtime": 30,
              "image": {
                "medium": "http:\/\/static.tvmaze.com\/uploads\/images\/medium_landscape\/4\/12369.jpg",
                "original": "http:\/\/static.tvmaze.com\/uploads\/images\/original_untouched\/4\/12369.jpg"
              },
         }
  
  
  
  
  
      let id = prompt('Enter the episode ids');
     let Info = (...id) =&gt; {
         for(let current in BigBang._embedded.episodes) {
             if(BigBang._embedded.episodes[current].id === parseInt(id)) {
                 let Detail = BigBang._embedded.episodes[current];
                 console.log(Detail);
             }
         }
     }
     Info(id);
  </code></pre>