This first test is wrong. it was expecting -1. The answer should be 1. Also I dont know why my function was returning undefined because it works on my local ide.
Course: Educative: Interactive Courses for Software Developers
Lesson: Educative: Interactive Courses for Software Developers