Question:
Find the continues pair largest sum in array

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;
Instructions: How to Check this code
  1. Inspect this page
  2. Source tab
  3. Select source file

    This .html source file has the JS code

  4. Keep Breakpoint

    See the JS code starting and Click on the line number

  5. Then "Refresh" the browser.
  6. Step/run statement by statement

    Press f9 (or) Click Step icon one by one

  7. Now you can watch what happens to the code, when running line by line
    You can also see the details like
    • variable's current value below the script dropdown
    • CallStack details below the CallStack dropdown. etc..