Respuesta :

#The loop that adds 5 to userNum while userNum is less than 20, displaying the result after each addition is given below.

What is a loop?

A loop is a set of instructions in computer programming that is repeatedly repeated until a given condition is met.

The sample code related to the above function is given as?

// declaring variable userNum

var userNum = 5;

// variable ans to store all answers and print them in single line

// (as expected in sample output)

var ans = "";

// while loop, while userNum is <= 20

// (to get output 25 on screen, we need to run loop till less-than-equal) while(userNum <= 20) {

  userNum += 5;

  ans += userNum + " ";

}

// displaying final output on console

console.log(ans);  

Learn more about loops at;
https://brainly.com/question/26568485
#SPJ1