JS
challenger
Home
JavaScript Practice
JavaScript objects
Creating Javascript objects two
Creating Javascript objects two
Write a function that takes two strings (a and b) as arguments. Create an object that has a property with key 'a' and a value of 'b'. Return the object.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console