Exercise: Populating The Dropdown Menu
In the next video, we are going to connect out /planets endpoint to our frontend! Just for a reference, the area of the code on the front end that we want to populate is the dropdown menu for the exoplanets.
Before you watch the next video, try to do this yourself and see if you can code it on your own! We will show you the solution in the next video!
Additional Science Note
It’s astronomy time! In the next video you’ll notice the use of a few different terms and symbols.
- Solar Mass measures the amount of total matter that exists in the star our Kepler planet is orbiting. The Kepler planet’s version of our Sun. It is measured in units of M☉ which is equivalent to the mass of the Earth’s Sun in kilograms.
- Solar Radius measures the size of the star. It is measured in units of R☉ which is equivalent to the size of the Earth’s Sun in km.
- Planetary Radius measures the size of the Kepler planet. It is measured in units of R⊕ which is equivalent to the Earth’s size in km.
When we say, for example, 0.50 R⊕ < Planetary Radius < 1.50 R⊕ we are really saying “the Planetary Radius of our Kepler planet must be greater than 0.5 times the Planetary Radius of Earth, but less than 1.5 times the Planetary Radius of Earth."
For more details on these symbols feel free to check out https://en.wikipedia.org/wiki/List_of_common_astronomy_symbols
