As a web developer please don’t copy and paste code you find in examples and tutorials without taking the time to understand it.
Learning what’s actually happening will be far more valuable to you in the long term than getting the job done quickly.
So if you need to take a few extra minutes to refer to documentation do it. Your clients will be grateful of quality in the long term.
Everyday you code is an opportunity to learn. Make the most of it.