why in this code, a is interpreted as real key name, not value hidden under a variable?
function myfunc(a,b)
{
return {a:b};
}
var c = myfunc("key","value");
console.log(c);
This code print:
{
  a: "value"
}
not:
{
  "key": "value"
}
How to modify this code, to use value under a as key name?
 
     
    