Im having problems trying to understand the complete process in a while statment in JavaScript, some doubts appear if I try to explain, step by step, how this code works: