// main.js import { convertCurrency } from './obeserver.js'; //form the export default import someName from './obeserver.js'; //observer.js const url = 'https://test.com'; export const convertCurrency = (EUR) => { return EUR * 0.9; }; export default url;
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