The best way to learn a programming language is just go through the basics of the language. When you learn the basics, build a console project. And if you stuck, just google it. If you don't indentified the problem, there is a website name 'stack overflow'. You can just post your problem there,and 1000 of developers are waiting for solve it. Don't buy a book to learn a programming language,and don't try to learn everything.
some of the good free and paid resource to learn programming language:
- https://www.w3schools.com/ (free)
- https://developer.mozilla.org/en-US/ (free)
- https://www.codecademy.com/ (free)
- https://www.coursera.org/ (paid)
- https://www.udemy.com/courses/development/web-development/ (paid)
