console.log( // { userName: "Echo", avatar: 'anon.png' } createUser({ userName: 'echo' }),JavaScript Factory Functions with ES6+7.1K31Eric ElliottNeverenderFollowJul 22, 2017 · 1 min readThinking that one of the “echo”s have a spelling error