Skip to content

Instantly share code, notes, and snippets.

@appoll
Created November 23, 2020 19:01
Show Gist options
  • Save appoll/9fb660e579b85a802e98baf8ff6885a2 to your computer and use it in GitHub Desktop.
Save appoll/9fb660e579b85a802e98baf8ff6885a2 to your computer and use it in GitHub Desktop.
let person = {
firstName: "Paul",
lastName: "Anton",
age: 28,
job:
{city: "Hamburg"},
bikes: ["Mountain Bike", "Road bike", "Cyclo Cross"],
minutesOnSocialMedia: [45, 65, 70, 120, 300]
}
console.log(person.bikes);
// 4.1 write one line of code to print how many bikes the user has (the count of bikes)
// 4.2 write code to calculate the total amount of time spent on social media
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment