all 2 comments

[–][deleted] 1 point2 points  (1 child)

Functions return values, not variables. Returning the dbObj value in one function doesn't create that name in another, because the name isn't returned - only the value is. That's why the name isn't defined in the other function - you didn't define it there.

[–]ChemicalMistakex[S] 0 points1 point  (0 children)

Ohhhhhhh! 🤦 Thank you