Skip to content

fabiankaegy/advent-of-code-2022

Repository files navigation

Advent of Code 2022

Very sloppy implementations of the 2021 Advent of Code challenges written in vanilla JavaScript. To run the scripts I use Quokka JS to evaluate the code inline in VSCode.

Using Inputs

There is a helper in the repo that automatically parses the daily input into an array of strings representing the individual lines.

const getInputValues = require('./helper/get-input-values');

// replace 'x' with the name of the .txt file located in the `input` folder
const input = await getInputValues( 'x' );