Created
January 3, 2021 14:18
-
-
Save atagulalan/daf38e64844ba2efdb03c8d38f46b8f4 to your computer and use it in GitHub Desktop.
Not hesaplama
This file contains hidden or 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
const [vize, final] = [50, 60] | |
const not = vize * 0.4 + final * 0.6 | |
console.log( | |
[50, 25, 5, 5, 5, 11] | |
.map((el, i) => | |
Array(el).fill(['Kaldın', 'Koşullu', 'CB', 'BB', 'BA', 'AA'][i]) | |
) | |
.flat()[~~not] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment