Skip to content

Instantly share code, notes, and snippets.

@ericdouglas
Created January 31, 2014 11:58
Show Gist options
  • Save ericdouglas/8730768 to your computer and use it in GitHub Desktop.
Save ericdouglas/8730768 to your computer and use it in GitHub Desktop.
Resolução do Exercício 01 do Capítulo 03 - JavaScript Eloquente
var numeroDeCamadas = 7,
contador = 1,
unidadeTijolo = "#",
tijolos = unidadeTijolo;
for ( ; contador <= numeroDeCamadas; contador += 1 ) {
console.log( tijolos );
tijolos += unidadeTijolo;
}
@johanbacks
Copy link

` var number = ""
for (var i = 1 ; i <= 7; i++) {

number += "#";
console.log(number);
}

`

@daviassumpcao
Copy link

var a = '';
for (var i = 0; i <7; i++){
a += '#';
console.log(a);
}

@oastro
Copy link

oastro commented Aug 2, 2020

var twitter = "";

for( x = 0; x < 7; x++){
twitter += "#"
console.log(twitter);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment