Media Summary: just reverse() it...plus some other stuff. standard if statement and for loop; i couldnt find a reliable one-liner kata link: ... some Number() construction with a lot of test() kata link:
Code Wars C Coding Challenge 8 Kyu Swap Values - Detailed Analysis & Overview
just reverse() it...plus some other stuff. standard if statement and for loop; i couldnt find a reliable one-liner kata link: ... some Number() construction with a lot of test() kata link: this one uses the ternary operator kata link: this is done with a template literal and the toFixed() method. using a switch statement then using the repeat() and trim() methods switch statement info: ...
we use Math.abs() and the String() constructor Math.abs() info: ... we solve this one with a simple filter() method.