Looking to expand my knowledge in javascript with an interesting challenge.
Is there a way to retrieve the value of an object using another object's value as the key?
For example:
Obj1 = {"name":"John", "age":30, "car":null};
Obj2 = {"John":{"country":"america", "job":"Engineer"}}
How can we achieve something like Obj2.{Obj1.name}.country
(result: america)