My code is as follows:
var currency = "USD";
var value = 100;
function test(currency, value) {
var myObject = {("" + currency): value};
console.log(myObject);
}
test(currency, value);
I'm trying to get an object as follows:
{"USD": 100}
How do I fix my code to do this?