I used ‘function’ instead of ‘for’ . First it logs what I wanted. Then it says ‘undefined’ MYYYNUMBER + 1 (That means eight) times. Why?
let MYYYNUMBER = 7; //How many times it should log
let MYYYVALUE = 1; //Value that is changed in loop and is printed
var MYYFUNCTION999 = function MYYFUNCTION777() { //Function starts
if (MYYYNUMBER > 0) { //Makes loop work until MYYNUMBER is 0
console.log(MYYYVALUE) //Logs MYYYVALUE
MYYYNUMBER-- //Makes the loop come to end by a little bit
MYYYVALUE++ //Makes loggable number bigger
console.log(MYYFUNCTION999()); //Repeats the function
}; //END
}; //I won't stop commenting, you know...
console.log(MYYFUNCTION999()); //Starts the function
//At the end output is what I wanted + 'undefined' 8 times.
//R.I.P. 12 year old from Lithuania. Died from rage. 2019-04-13.