It all depends on what you want to do. There are a LOT of coding languages. A lot of different languages serve different purposes. I guess learning HTML or PHP would be rather simple to learn through youtube, but if you want to learn C++ or Java a book can do wonders as well.
What is your objective to reach with your future coding skills?