A function which has 2 arguments:
- First argument will have string - 'hello ${val}'
- Second argument will be an object - {'val':'world'}
I need to write a solution where the first argument will access the property of the second argument's object and print its value in the first argument's string.
function PropertyAccess('hello ${val}', {val:'world'}){
//returns "Hello World"
}