Ad
  • Custom User Avatar

    1.) Return the answer, don't print (console.log) it.
    2.) Your function notation is wrong.
    3.) This won't work since the input can be any huge number (leading to memory error.)