DEV Community

Discussion on: Tricky JavaScript Interview Problem

Collapse
 
sohammondal profile image
Soham Mondal • Edited

I knew that the answer would be undefined, but wasn't aware of this


var person = { [key] : "Sherlock" } 

Thanks! 😄

Collapse
 
satyam1729 profile image
Satyam Yadav

I am glad that you got to know something new.