Javascript - Adding images to objects via object literal notation
<p>I have been trying to add an image to several different objects via object literal notation. </p>

<p>I couldn't get it to work and was wondering if anyone had any insight on this. </p>

<pre><code>var hotelRooms = [
  {
   hotel: 'Hotel Hawaii',
   price: '$350 / Night',
   size: '400 Square Feet',
   img: 'images/image.src', // What I have tried.
   image: 'images/image.src' // What I have tried.
  },
  {
   hotel: 'Downtown Hawaii',
   price: '$450 / Night',
   size: '300 Square Feet',
   img: 'images/image.src', // What I have tried.
   image: 'images/image.src' // What I have tried.
 }
];
</code></pre>