Practice makes perfec


#1

I'm confused with this too. I don't know how to fix this.


Practice makes perfect
#2

check the instruction again what should you print


#3

Pokusaj ovo:
//Remember to set your condition outside the loop!

var i = 0;
var n;
var loop = function(n){
while(i<n){
//Your code goes here!
console.log("I'm looping!");
i++;
}
};

loop(3);


#4

Nije uspelo tako. Ali ovako jeste. Hvala.
var count=0;

var loop = function(){
while(count<3){
console.log("I'm looping!");
count++
}
};

loop();
@rcodeman I did it this way, thanks.


#5

Svasta. Mislim, u redu je i taj tvoj kod, ali ja sam onako svoj, volim da ima argument pa malo zakomplikovao i cudi me da nije uspelo


#6

Moja greska. U pravu si, sad sam se vratila i ponovila opet i radi. Tacan je tvoj kod, nego meni sajt nesto baguje, pa mi je uporno pokazivalo da nije tacno. Ipak je tacan :slight_smile: Hvala


#7

You're welcome! :slight_smile:


#8

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