timoxley / functional-javascript-workshop

A functional javascript workshop. No libraries required (i.e. no underscore), just ES5.
2.05k stars 438 forks source link

Fixed randomwords function to correctly uppercase words #134

Closed tongrhj closed 8 years ago

tongrhj commented 8 years ago

Problem: “TypeError: Cannot assign to read only property '0' of Exercitation” when trying to run n5 Exercise

Solution: use uppercase + substring of word rather than modifying the string as if it were an array

tongrhj commented 8 years ago

Mine and @yongjun21's attempt to resolve this issue: https://github.com/timoxley/functional-javascript-workshop/issues/131

@cbas

tongrhj commented 8 years ago

Nice @cbas. I caught it eventually......