Hello, I have a question about Makecode for LEGO MINDSORMS.
I wrote this code
````
for (let i = 0; i < 2; i++) {
music.playSoundEffect(sounds.informationTouch)
}
motors.largeBC.tank(-100, -100, 10, MoveUnit.Seconds)
}
````
I dont understand the way how this code runs by repeating the sound only one time.
It should repeat the sound 2 times for (let i = 0; i < 2; i++)
I wrote this code
````
for (let i = 0; i < 2; i++) {
music.playSoundEffect(sounds.informationTouch)
}
motors.largeBC.tank(-100, -100, 10, MoveUnit.Seconds)
}
````
I dont understand the way how this code runs by repeating the sound only one time.
It should repeat the sound 2 times for (let i = 0; i < 2; i++)