I wouldn’t be surprised if people feel uncomfortable googling in an interview even when told it’s fine.
You’re being judged for your knowledge (in part at least), googling something fairly basic doesn’t feel great even if it’s completely normal to do that in normal development.
In a given day I code in 3 or 4 different languages, and sometimes I'll brain fart and totally forget something like how to get the character at a specific index in a string for THIS language.
Sometimes my google queries are so entry-level that even I chuckle, but I do worry what my employer would think if they saw "how to create a date in java"
You’re being judged for your knowledge (in part at least), googling something fairly basic doesn’t feel great even if it’s completely normal to do that in normal development.