easyJS ES5#123

Números perdidos (missing numbers)

Prompt

Given an array that should contain consecutive numbers from 1 to N but is missing some, return the missing numbers in order. Empty input returns [].

Hints

Solution

Your Code

5 min

Tests

Click Run to test your code