Hosting JavaScript file via CDN

Is it possible for me to host a javascript file as a CDN that I can point to with a URL. For example, could I have an index.js file hosted on a CDN that I can point to with some URL like https://somedomain.com/index.js ?
This domain may be for sale!
Was this page helpful?