Skip to content

Instantly share code, notes, and snippets.

@ericdouglas
Created January 31, 2014 11:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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;
}
@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