Where did your function put those values? You have the code right there, all you need to do is read it, right?
Once you’ve figured that out, what operations are therefore required to obtain them from the object?
What’s telling you that you’re prevented from viewing the object? (Let’s say this was a security-sensitive application that needs to hide those values. How would you argue that they can’t be viewed? Or, if you can’t argue for it, then you shouldn’t be able to reach that conclusion, right? Assumptions are great, but they are not facts, they come with some condition. At the very least you need to be able to argue for any conclusion you make - if they come out of the blue then… well the assumption simply shouldn’t exist in the first place, you must have obtained it somehow)
What’s stopping you?
Is a really important question for figuring all these things out.
Identify what information you want.
Identify where that information exists.
Identify what stops you from obtaining it.
For each thing stopping you, start over from step 2
When nothing more stops you, it should be obtainable.
More concretely, you’re wondering where that string and boolean goes. You have a function which accepts them as arguments, what does that function do with them? What’s stopping you from having that information is not having read the function. So you’d go ahead and read it to find out where they went.
Then, if you wanted to print them, you’ve already found out above where they are, so if you don’t know how to get them out, then from knowing the information is inside an object you’d look up operations for objects (reading attributes) and then, since you can now read attributes and you know which object and which attribute, you should now be able to pass the values to console.log
This is a lot like giving bob a lollipop and wondering how to lick it. You’d probably need to ask bob where it went. Maybe bob ate it, in which case you can’t lick it. And, importantly, before thinking about how to specifically lick it you have to first sort out how to find it.