fix: Resolved issues involving objects

pull/268/head
Helder Cambuta 3 years ago
parent e368ae9b39
commit 2923763a12

@ -43,6 +43,7 @@ else if (month == 'december') {
console.log(`December has ${daysInMonth[11]} day`)
}
/**
* 1.2. Write a program which tells the number of days in a month,
* now consider leap year.

@ -15,6 +15,7 @@ dog.bark = function() {
return 'woof woof'
}
// 4. Get name, legs, color, age and bark value from the dog object
let values = Object.values(dog)

@ -50,6 +50,7 @@ const users = {
}
}
// Find the person who has many skills in the users object.
const userWithMaxSkills = (users) => Object.entries(users)
.reduce((res, [username, data]) => {

Loading…
Cancel
Save