Created
January 31, 2014 11:58
-
-
Save ericdouglas/8730768 to your computer and use it in GitHub Desktop.
Resolução do Exercício 01 do Capítulo 03 - JavaScript Eloquente
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var numeroDeCamadas = 7, | |
contador = 1, | |
unidadeTijolo = "#", | |
tijolos = unidadeTijolo; | |
for ( ; contador <= numeroDeCamadas; contador += 1 ) { | |
console.log( tijolos ); | |
tijolos += unidadeTijolo; | |
} |
leanfj
commented
Apr 17, 2019
let hash = ''
for(let i=0; i<7; i++){
hash += '#'
console.log(hash)
}
` var number = ""
for (var i = 1 ; i <= 7; i++) {
number += "#";
console.log(number);
}
`
var a = '';
for (var i = 0; i <7; i++){
a += '#';
console.log(a);
}
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