-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathobjects_and_functions_practice
More file actions
21 lines (11 loc) · 1.34 KB
/
objects_and_functions_practice
File metadata and controls
21 lines (11 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 1. Make a object to store a person's first name, last name, and email address. Then print each attribute on separate lines.
# 2. Make a object to store prices for 3 different menu items. Then print the price of the third to see the result.
# 3. Make a object to store a book's title, author, number of pages, and language. Then print each attribute on separate lines.
# 4. Make objects to store the title and author for 3 different books. Then print out the third book's author using a function.
# 5. Make objects to store the first name and last name for 3 different people. Then print out the first person's info seperated by a space using a function.
# 6. Make an object to store 3 different states and their captitals. Then print write a funcitno to print the 2nd state and capital.
# 7. Make an object to store a phone's brand, model, and year. Then print each attribute on separate lines.
# 8. Make objects to store the brand and model for 3 different phones. Then write a function print out the second laptop's model.
# 9. Make an object to store definitions for 2 different words. Then print the 2nd.
# 10. Make an object to store a shirt's brand, color, and size. Then print each attribute on separate lines.
SOLUTIONS KEY: https://github.com/TaylorOD/Deliberate_Practice-JavaScript/blob/master/solution_key/objects_and_functions_practice_solutions.js