title: Object.keys, slice and splice
body: <p><strong>So I am still learning arrays and objects, and I'm a little bit stuck. 
     I made an example of array of objects:</strong> </p>
  
  <pre><code>var something = {candy:[{name:"snickers", price:2},
                      {name:"bounty", price:3},
                      {name:"mars", price:4}]};
  
  Object.keys(something.candy).filter(function(obj){
  return console.log(something.candy[obj].name);
  })
  </code></pre>
  
  <p><strong>1. Question - Why doesn't it work when I write.:</strong></p>
  
  <pre><code>var candy1 = Object.keys(something.candy);
  candy1.filter(function(obj){
  return console.log(obj.name);
  });
  </code></pre>
  
  <p><strong>Isn't it practically the same code meaning as above?</strong></p>
  
  <p><strong>2.Question How come slice works and splice doesn't???</strong></p>
  
  <pre><code>Object.keys(something.candy).filter(function(obj){
  return console.log(something.candy[obj].name.slice(0,3));
  })
  
  Object.keys(something.candy).filter(function(obj){
  return a(something.candy[obj].name.splice(1,3));
  })
  </code></pre>