Fix Object Property Access: Replace Dot Notation with Bracket Notation

The property name of the object is stored in a variable. Refactor the code by replacing dot notation with bracket notation to correctly access the dynamic property value.
JavaScript
Console