Posts by Gustavo Barbosa • 21 points
1 post
-
2
votes3
answers784
viewsA: How to return an object using the object name as a function parameter?
Like luislhl said to access the property whose value comes in the variable passed as argument you will need to use obj[bookName], but also remember to pass a string in the function call…