adventofcode2022/day-template/code.js

28 lines
396 B
JavaScript
Raw Normal View History

2022-12-06 05:15:55 +00:00
const fs = require('fs');
const inputArray = fs.readFileSync('sample.txt').toString().split("\n");
// const inputArray = fs.readFileSync('input.txt').toString().split("\n");
// Part One
for (i in inputArray) {
const contents = inputArray[i].split(" ");
}
console.log();
// Part Two
for (i in inputArray) {
const contents = inputArray[i].split(" ");
}
console.log();
// functions