JS
challenger
Home
JavaScript Practice
JavaScript objects
Accessing object properties three
Accessing object properties three
Write a function that takes an object with two properties and a string as arguments. It should return the value of the property with key equal to the value of the string
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console