It sounds like you replaced learning with trusting some code the internet gave you. Which sure, chatgpt is much better at, but this kind of tech is only a threat if your value is pasting in code you found on the internet. Most serious employers pay for your ability to learn.