Look at your
handleMath
method - we can't see it - and look at where it gets it's values from, and what it does with results: You want to do a very similar thing but with just the next value.
But this code is never
let sqrt() = Math.sqrt(value);
going to work: sqrt isn't a method, and
let
variables go out of scope very quickly and the result would be discarded anyway even if you corrected that:
JavaScript Let[
^]
To be honest, it looks like you found most of the code you need on the internet and are trying to modify it by guesswork and hope, without any understanding of what the code actually does or how it does it. That isn't going to work: I'd strongly suggest that you try to write your own code rather than try to cheat with someone elses!