6.1. Exercises
Practicing Selecting Values
Instructions:
Running a coding exercise for the first time, could take a bit of time for everything to load. Be patient, it could take a few minutes.
When you see ____ in a coding exercise, replace it with what you assume to be the correct code. Run it and see if you obtain the desired output. Submit your code to validate if you were correct.
Use the output of the following code chunk to help complete the next tasks.
Using our hockey_players data, try finding the following values and save them in their repective object names.
Tasks:
- Save
Thatcher Demko’s salary in an object nameddemko_paid. - How old is
Zack MacEwen? Save it as objectmacewen_age. - What position does
Jacob Markstromplay? Save this as objectmarkstrom_position. - When was
Justin Baileyborn? Save it as an object namedbailey_birth.