As an experienced programmer I can say (for myself) the best way I learn is by doing.
Since one of your objectives is to possibly write some games, a very good place to
start learning is through trying a variety of example programs where you can see
the inputs and outputs directly. The internet itself is an excellent source.
The Javascript language will likely play a big part in achieving your efforts and there
are some excellent samples - freely available on the internet.
Here is a good approach ...
1. Look at each web page example and see if it displays graphics effects you like.
2. View the programming source code of the web page and study how it works.
3. Copy the source code to your own computer and run it - keep the original.
4. Experiment with the code (trial and error) by making minor changes.
5. Run your version to see if your changes do what you expect.
6. Look up questions on the html or language.
7. Go back to step 1 above.
The following site has lots of good examples and provides fairly good documentation:
http://stemkoski.github.io/Three.js/
With Javascript experience, you can fairly easily grasp some of the other popular
languages like C++, C, Java, etc.
I know I have taken a lot for granted here about existing background and skills you may have,
but if you run into things you do not understand, or don't know how to do, just consult
a website that provides reference information, or ask someone for more explanation or help.
Have fun with programming in Javascript.