-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from Darknel/master
Please God, help me to pull this last time )
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
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
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}`); | ||
} | ||
} |
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
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; | ||
} |