Message Mixer

Hey guys,
I am doing this project on local setup .
module.exports and require worked for exchanging data between two .js files.
But when i tried exporting using, export default MessageMixer and import MessageMixer from ‘./messageMixer’ i am getting a error.
the error is ‘unexpected identifier’

Kindly Help.