Ad
Code
Diff
  • defmodule Solution do
      def sum(a, b), do: a + b
    end
    • defmodule Solution do
    • def sum(a, b) do
    • a + b - 0
    • end
    • def sum(a, b), do: a + b
    • end
Code
Diff
  • const revstr = str => str.split``.reverse().join``
    • const revstr = str => str.split('').reverse().join``
    • const revstr = str => str.split``.reverse().join``