Beyond Cloud Interview Question

How to create a JavaScript key-value pair objects