0
let initialMap = {a:2, b:3}

Is there a way to access the value of a,b within the object, so that I could get responses as such?

let finalMap = {a:2,b:3,c:6} // added c = a*b

0 Answers0