Jwhiles / pure-functions-easy-testing

A workshop to help people start testing their code.
MIT License
2 stars 5 forks source link

ES6 in example #4

Open mantagen opened 7 years ago

mantagen commented 7 years ago

Students aren't expected to know about es6, so including it in passing is probably unhelpful.

// [] -> []
function makeSoundObjects (sounds) {
  return sounds.map(soundSrc => new Audio(soundSrc))
}

var soundObjects = makeSoundObjects(sounds)
jsms90 commented 7 years ago

Students of FAC11 have then used ES6 syntax themselves. This is not ideal, before they've been made away of when to use it and when not to

oliverjam commented 7 years ago

It looks like this was fixed a while ago, so can probably be closed

Edit: found the commit! (this is why calling them all "update readme.md" is unhelpful :P)