Sort:  

It was one of several projects taught / to code along on Colt Steele's Udemy course "The Web Developer Bootcamp". So yes and no.

I didn't just watch and copy, I tried to think for myself at first, and if there were ways of writing functions shorter that I thought of, I did.