romannumbers.js (bad decision)
This commit is contained in:
parent
9a20e41ec6
commit
e23257005a
16
src/romannumbers.js
Normal file
16
src/romannumbers.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Реализовать создание следующую запись ;]
|
||||
// ...
|
||||
|
||||
Number.prototype.I = Array.from(Array(1).keys())
|
||||
Number.prototype.II = Array.from(Array(2).keys())
|
||||
Number.prototype.III = Array.from(Array(3).keys())
|
||||
Number.prototype.IV = Array.from(Array(4).keys())
|
||||
Number.prototype.V = Array.from(Array(5).keys())
|
||||
Number.prototype.VI = Array.from(Array(6).keys())
|
||||
Number.prototype.VII = Array.from(Array(7).keys())
|
||||
Number.prototype.VIII = Array.from(Array(8).keys())
|
||||
Number.prototype.IX = Array.from(Array(9).keys())
|
||||
Number.prototype.X = Array.from(Array(10).keys())
|
||||
|
||||
console.log(0..V); // [0, 1, 2, 3, 4];
|
||||
console.log(0..VII); // [0, 1, 2, 3, 4, 5, 6];
|
Loading…
Reference in New Issue
Block a user