Javascript - for loop, if statement -- Find First Non-Consecutive Number

preview_player
Показать описание
In this video, we create a javascript function that uses a for loop and an if statement to find the first non-consecutive number in an array.

Please post your favorite way or a better way to solve this problem. There is almost always a better way!
Рекомендации по теме