var Max =4, Answer = 10;
var Value = new Array(Max);
for (i=0;i<=Max;i++)
Value[i]=i+1;
for (i=0;i<=Max;i++)
Answer +=Value[i];
alert (Answer);
It isn't that much hard. first you need to know what is a variable.
variable is a container which lays in the system memory (RAM) and store values in...