JSchallenger

Accessing object properties one

Viewed: 1333
Attempted: 926
Solved: 372
// Write a function that takes an object with two properties as argument
// It should return the value of the property with key country

function myFunction() {

return
}
Test Cases:
myFunction({ continent: 'Asia', country: 'Japan'})
Expected
'Japan'
myFunction({ country: 'Sweden', continent: 'Europe'})
Expected
'Sweden'