地獄の FizzBuzz その 3
JavaScript の配列内包で
var range = function (begin, end) { for (let i = begin; i < end; ++i) { yield i; } } var dummy = [document.writeln(s) for each (i in range(1, 50)) if (s = "", i % 3 ? true : (s = s + "Fizz"), i % 5 ? true : (s = s + "Buzz"), i % 7 ? true : (s = s + "Pezz"), i % 11 ? true : (s = s + "Hozz"), i % 13 ? true : (s = s + "Shizu"), s ? true : (s = i.toString()) )];