Why the variable dogLove = false is shown on the console, if we don t have console.log?


var loveAnimal = [];
var dogLove = true ;

while (dogLove) {
dogLove = false;


It is the nature of the command line interpreter to flush the buffer of the last declared value when the program terminates. If you do not want to see it, make that statement before the console.log() statement.


Thank you very much!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.