Coderslang_Master
1.constant.js
export const users = {
1: {
name: 'Connor',
},
2: {
name: 'Harry',
},
3: {
name: 'Jack',
},
};
2.helper.js
import { users } from './constants.js'
export const getUserName = 'conor'
3.solution.js
import{getUserName} from './helpers.js'
console.log(`Hi ${getUserName}, glad to see you`); // Hi Connor, glad to see you