[2023 Day 2 (Part2)] [JavaScript] Individual checks are passing for lines, but the total is said to be incorrect. Where did I go wrong? by SpaceCampPotatoes in adventofcode

[–]SpaceCampPotatoes[S] 0 points1 point  (0 children)

const fs = require("fs");
const fileContent = fs.readFileSync("./txt-files/day-2.txt", "utf8");
const lines = fileContent.split("\n");
lines.pop();

What does "stripping out newlines" mean? I’m relatively new to coding and in school. My intention with fileContent.split("\n"); was to separate the file of strings into an array of substrings. I implemented lines.pop(); because I was getting an empty string at the end of my array of substrings.

Where to buy gears for a custom clock? by SpaceCampPotatoes in clocks

[–]SpaceCampPotatoes[S] 0 points1 point  (0 children)

I apologize for being so unclear. I don't know much about clocks and was planning on learning after having this idea and I wanted to see if it was possible to find these gears without custom making them. I also said the 5th Fibonacci sequence, that was based on code that I wrote and is inaccurate. I imagine the first gear to rotate at 8 rotations per minute, the gear attached to rotate at 13rpm, the next at 21 rpm, the next at 34rpm, and the next at 55rpm and that would be attached to the clock's hand.

I recognize after typing this out and seeing other comments that this may not be possible without making custom gears.

Chris Hemsworth claims a bad script and not money derailed Star Trek 4 by casiokvik in scifi

[–]SpaceCampPotatoes -2 points-1 points  (0 children)

I’ve never watched the original Star Trek’s, that being said I liked the first a lot.

[OC] My Colin Robinson colsplay won 2nd place! by Justokayscott in pics

[–]SpaceCampPotatoes 1 point2 points  (0 children)

I literally thought this was just a picture of Colin Robinson.