Fix the function getTestData
is helper.js
.
It should return the object {name: 'Jane', age: 22}
without using the return
keyword.
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
export const getTestData = () => { name: 'Jane', age: 22 };
solution.js
import { getTestData } from './helper.js';
console.log(getTestData());