It asks "Did you log "looped once" to console."


Keeps asking if I have logged looped once to the console, I don't know where my code went wrong.

 var number = true
var soloLoop = function(number){
      number = false;
      console.log("Looped once!");//Your code goes here!



Yeah no I got it, super simple... -_-


Yes you've shadowed the global variable number (value:true) by using a parameter with the same name (value:0). And as 0 is treated like false your loop is not executed at all. Just in case someone wants to know the problem.


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