Beyond Cloud interview question

How to create a JavaScript key-value pair objects