No entiendo que hice mal pero no paso 1 test secreto en el desafío 6.
Dejo el código en la imagen y a continuación:
||js function maxDistance(movements) { let acum = 0 for (let char of movements) { if (char == ">") acum++ else if (char == "<") acum-- else acum += acum >= 0 ? 1 : -1 } acum = Math.abs(acum) return acum }||