I'm new to javascript. I have a strange requirement.
How can we access the value of an object whose key is the value of another object?
Ex:
Obj1 = {"name":"John", "age":30, "car":null};
Obj2 = {"John":{"country":"america", "job":"Engineer"}}
How to achieve something like Obj2.{Obj1.name}.country (result: america)