SharePoint CSOM: Used for getting data and can be used with SharePoint on premise and Online
Let us take a look into this article about using CSOM to develop client applications for SharePoint Online
https://gooroo.io/GoorooTHINK/Article/17077/Develop-application-on-SharePoint-Online-Using-CSOM/2575...