The following is a JavaScript segment code. Use it to answer the question that follows.
function squares(size)
{
var sqr;
for (var i=1; i<=size; i++)
{
sqr=i*i;
alert(sqr);
}
}
Interpret the code.
 Viewed: 107 times For Better experience and learning,for video answers, after video ends playing, click next question in the questions list!!!