Fix the function sum
is helper.js
.
When imported into solution.js
it should return the sum of two numbers
Don’t use curly braces and return
statement
This task is part of the Full-Stack JavaScript Course
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task
helper.js
sum = (x, y) => return x - y;
solution.js
import { sum } from './helper.js';
console.log(sum(2, 2)); // 4
console.log(sum(4, 3)); // 7