#AdventOfCode Day 2 beat me up. AI saved me #coding #aicoding

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

break and continue are two more control flow statements you could check out. You can break out of the loop or skip to the next iteration

deanharber
Автор

//Also there are jump conditions:
let i = 0;
let j = 0;
what:
for(i = 0; i < 4; ++i) {
for (j = 0; j <25; j++) {
if (i*j >42) break what;
}
}
console.log("Breaked at:", i*j);

larryd
Автор

Day 2 wasn't that bad. I'm a little behind because of actual work, but I plan on catching up over the weekend.

itsjohannawren
welcome to shbcf.ru