strenkel / jshero

JS Hero - Learn to code: JavaScript online tutorial with interactive exercises
https://www.jshero.net
Other
28 stars 10 forks source link

11. String: toUpperCase(): Test error #25

Closed feinstaub closed 6 years ago

feinstaub commented 6 years ago

Probably a regression due to refactoring:

On http://www.jshero.net/main.html?koan=stringupper this correct solution

var toCase = function(a) { return a.toLowerCase() + '-' + a.toUpperCase(); }

yields a test error:

toCase("Ida") gibt nicht "ida-Ida", sondern "ida-IDA" zurück.
strenkel commented 6 years ago

Thanks! Fixed.