Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | JS: Raindrops: Switch to using a map | Andinus | 2021-09-05 | 1 | -9/+9 |
| | | | | | | | | | | | | | | | | I switched to single object literals initially: const factorToSound = { 3: "Pling", 5: "Plang", 7: "Plong" }; and used `for .. if` to iterate over them, that may cause some issues: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of#difference_between_for...of_and_for...in I decided to switch to using Maps and iterate over them with `for .. of` instead. | ||||
* | JS: Raindrops: Move rules to a const | Andinus | 2021-09-05 | 1 | -8/+10 |
| | |||||
* | JS: Raindrops: Remove repeated math logic | Andinus | 2021-09-04 | 1 | -5/+11 |
| | | | | | | - Removes repeated math logic. - Compares against "" instead of using .length. - Uses "number" instead of "num". | ||||
* | JS: Raindrops: Add solution | Andinus | 2021-09-03 | 9 | -0/+259 |