const Main = ( () => {
const ca ='public';
const cb ='private';
// we'll export this function
const fa = () => `${ca}:${cb}`;
// but not these
const fb = () => fa();
const fc = () => fb();
// this is a little like export
// just expose the things you want public
return {
fa,
ca
};
})();
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter