Example Resulting value of x
var i = 1;
var x = 0;
while (i<=4) {
  x = x + i;
  i++;
}
10