- Take a class.
- Look at examples, tutorials, and videos.
There are many excellent videos, tutorials, and resources online:
Douglas Crockford video series
- Find a real project or tasks to work on.