ES6 Modules Challenge #5

I can not find the explanation why ES6 Modules Challenge #5 use this export default format.

export default { 
  changeText: changeText,       
  changeToFunkyColor: changeToFunkyColor 
}

Why I can not use this?

export default resources

I guess you would need to have a resources object or variable to do
export default resources

const resources = {
  changeText: changeText,
  changeToFunkyColor: changeToFunkyColor
}

or

const resources = { changeText, changeToFunkyColor }

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.