Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,7 @@
var output = '',
i;
for (i = 2; i <= 8; i += 2) {
output += i + ', ';
}
output += 'who do we appreciate?';
document.write(output);

View file

@ -0,0 +1,21 @@
// range(iMax)
// range(iMin, iMax)
// range(iMin, iMax, dI)
function range() {
var lngArgs = arguments.length,
lngMore = lngArgs - 1;
iMin = lngMore ? arguments[0] : 1;
iMax = arguments[lngMore ? 1 : 0];
dI = lngMore > 1 ? arguments[2] : 1;
return lngArgs ? Array.apply(null, Array(
Math.floor((iMax - iMin) / dI) + 1
)).map(function (_, i) {
return iMin + (dI * i);
}) : [];
}
console.log(
range(2, 8, 2).join(', ') + ', who do we appreciate ?'
);