xxxxxxxxxx
Use sites like w3schools for the basics
Use sites like leetcode or codesignal for training (Algorithms )
Most importantly build simple tools yourself.
Make a Todolist-app, Calculator, Weather-app, Quiz-app
Then make somthing you or someone you know needs