Creating Javascript objects one

Write a function that takes a string as argument. Create an object that has a property with key 'key' and a value equal to the string. Return the object.
JavaScript
Console