helper.js
1.export const sayHello = (name) => {
2.console.log('Hello, ' + name + '!');
3.};
solution.js
1.import { sayHello } from './helper.js'
2.
3.sayHello('John'); // Hello, John!
4.sayHello('Sandy'); // Hello, Sandy!
task.cdsl
Details
1.sayHello should be exported from the file helper.js
2.sayHello should de a function
3.Function sayHello should return the proper greeting