Google Bard writing a chrome plugin

I asked Google Bard to write a trivial Chrome plugin and corrected it as it went.
I shudder to think of all the non-programmers using AI tools to create Chrome plugins. What could possibly go wrong?
It is impressive though that it can take feedback and correct itself. In some ways we don't recognize the incredible accomplishment that this represents and focus on the AI's wrongdoings.