Language Greeting Selector

Write a function getGreeting that takes a language code as input and returns the corresponding greeting from a predefined greetings object.
Use dynamic property access to get the value from the object.
If the language code does not exist in the object, return the default greeting 'Hello!'
JavaScript
Console