Ad
Code
Diff
  • const revstr = str => [...str].reverse().join('')
    • const revstr = str => str.split``.reverse().join``
    • const revstr = str => [...str].reverse().join('')
Fundamentals
Numbers
Data Types
Integers
Code
Diff
  • class Odd
      def odd(n)
        n.odd?
      end
    end
    • class Odd
    • def odd(n)
    • n % 2 == 1
    • n.odd?
    • end
    • end