Skip to content

Instantly share code, notes, and snippets.

@nathanbarrett
Created October 2, 2017 17:44
Show Gist options
  • Select an option

  • Save nathanbarrett/5cc51f776e42fbb0a9ce769150351bca to your computer and use it in GitHub Desktop.

Select an option

Save nathanbarrett/5cc51f776e42fbb0a9ce769150351bca to your computer and use it in GitHub Desktop.
A list of all the planets and distances
var solarSystem = [
{
name: 'The Sun',
diameter: 1391400000,
distance: 0
},
{
name: 'Mercury',
diameter: 4879000,
distance: 57909227000
},
{
name: 'Venus',
diameter: 12104000,
distance: 108209475000
},
{
name: 'Earth',
diameter: 12742000,
distance: 149598262000
},
{
name: 'Mars',
diameter: 6779000,
distance: 227943824000
},
{
name: 'Jupiter',
diameter: 139822000,
distance: 778340821000
},
{
name: 'Saturn',
diameter: 116464000,
distance: 1426666422000
},
{
name: 'Uranus',
diameter: 50724000,
distance: 2870658186000
},
{
name: 'Neptune',
diameter: 49244000,
distance: 4498396441000
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment