Skip to content

Commit

Permalink
Merge pull request #209 from Darknel/master
Browse files Browse the repository at this point in the history
Please God, help me to pull this last time )
  • Loading branch information
VitaliiHurin authored Nov 10, 2018
2 parents 9792086 + 87042a8 commit 02c275f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions homeworks/evgen.kushnir_darknel/homework_2/numbers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
for (let test = 500; test < 1000; test++) {
const numberTest = test.toString().split('').reverse().join('');
const numberTestCheck = test.toString();
if (numberTest === numberTestCheck) {
console.log(`${test}`);
}
}
10 changes: 10 additions & 0 deletions homeworks/evgen.kushnir_darknel/homework_2/piramid.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const symbol = '#';
let startNumber = 4;
const emptySpace = ' ';
let emptySpaceNumber = 14;

for (let i = 0; i < 15; i++) {
console.log(emptySpace.repeat(emptySpaceNumber) + symbol.repeat(startNumber));
startNumber += 2;
emptySpaceNumber -= 1;
}

0 comments on commit 02c275f

Please sign in to comment.