I'm after a simple JavaScript function call example

I would say its cheating if youre posting your results on this forum whilist competing in a leaderboard with others using snap, yet using the wrong programming language. I have been doing aoc to test the limits of snap, to have fun, and partake in a friendly competition, not to be beaten because snap wasnt fast enough to do a computation and being beaten by

and of course if everyone was allowed using JS, then literally theres no point in using snap since its a lot slower.