So I\'ve been having a go at the advent of code challenges. Currently I\'m on day 2 and there seems to be an issue with the following code when I run it through node.js on t