how many "t"s can you find in:
q: jsom, rest api on-premise i have a virtual machine with sp2013 . how to find examples/work with jsom , rest api's on premise . also if anyone can provide explanation on jsom,csom,ssom,rest,oauth it would be great . i want to know if i can use all the above om on premise or if i can use all above om on cloud ?

a: the client object model (csom/jsom) and the rest api work the same whether you are targeting an on-premises farm or an office 365 tenant. the only real difference is how you authenticate but, once you are authenticated, the remainder of the code is the same.
i recently did a workshop at a conference that was an introduction to the client object model and the rest api. the slides and demos can be downloaded from my skydrive.
https://onedrive.live.com/?cid=b810a8a4579bd670&id=b810a8a4579bd670%21758
there are some examples on msdn:
http://msdn.microsoft.com/en-us/library/office/fp179912(v=office.15).aspx
http://msdn.microsoft.com/en-us/library/office/jj163201(v=office.15).aspx
http://msdn.microsoft.com/en-us/library/office/jj164022(v=office.15).aspx
i also have a course on pluralsight that covers development with the client object model and the rest api. you can get a free trial on the website if you are not already a member.
http://pluralsight.com/courses/sharepoint-2013-client-object-model-rest

user
The text includes eighty-three "t"s in total.
assistant