[1,2,3].map((n,k)=> {k:n})
In the above execution, the output is pretty doesn't print k, what's the catch here?
[1,2,3].map((n,k)=> console.log(n,k))
This one works though!