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;
}
@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