How to learn a new programming language (the right way):
1. Start with the basics.
It's tempting to dive straight into the deep end, but don't do it!
Create a solid foundation for your knowledge by understanding the fundamentals of a language — the syntax, data types, variable declarations, operators, etc.
2. Build projects
When it comes to learning programming, theory is only the beginning. You need to start coding right away!
Nothing solidifies knowledge more than the experience of trial and error.