This is a note for myself so that I can easily find it.
SharePoint 2010 CSOM and JavaScript
- Using the SharePoint Foundation 2010 Managed Client Object Model
- Common Programming Tasks in the JavaScript Object Model
SharePoint 2013 CSOM, JavaScript, and REST