Can't figure out what the actual difference is between
return ["ID DATA", parseInt(oldIdData + oldIdData, 2) + 1];
let resultingIdData = ["ID DATA", parseInt(oldIdData + oldIdData, 2) + 1]; return resultingIdData;
Why does the first option give an error and the second not? In my opinion, the second ("correct") option is just an irrational increase in the code and the introduction of one more completely unnecessary variable. Moreover, if you remove the addition of unity, the error disappears:
return ["ID DATA", parseInt(oldIdData + oldIdData, 2)];
To place the code, please use CodePen or similar tool. Thanks you!