re: Advent of Code 2019 Solution Megathread - Day 1: The Tyranny of the Rocket Equation VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Ooh this is a great use of do...while. I went with the less elegant nested if for mine 😅 Part 1 (JavaScript) const fs = require("fs")...
 

Still works well! As long as it gets you the answer, it's good! :)

I saw someone use a ternary operator, and was super impressed. Might refactor mine later today to test that. :) Didn't even think of it!

code of conduct - report abuse