Largest Sum:
const arr = [2,3,5,9,1,7,2];
let sum = 0, max=0;
for(let i=0; i < arr.length-1;i++) {
sum = arr[i]+arr[i+1]
if(max < sum){
max=sum;
}
}
document.getElementById("answer").innerHTML = max;
This .html source file has the JS code
See the JS code starting and Click on the line number
Press f9 (or) Click Step icon one by one