JSchallenger

Accessing object properties one

Viewed: 288
Attempted: 149
Solved: 66
// 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'