export function sum(x, y) {
return x + y
}
export function difference(x, y) {
return x - y
}
export function product(x, y) {
return x * y
}
export function quotient(x, y) {
return x / y
}
import { sum, difference, product, quotient } from 'js2.js';
const x = 10
const y = 5;
console.log(sum(x, y))
<script type="javascript/text" src="file1.js"></script>
<script type="javascript/text" src="file2.js"></script>