Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var bucle = function(){
- contador = 0; //al ser la condición (contador < 4) nos aseguramos que la condicion sea verdadera al ingresar al while()
- while(contador < 3)
- {
- console.log("Estoy en un bucle!");
- bucle++;
- }
- }
- bucle(); //llamada a la funcion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement