Max Consecutive Ones — JavaScript easy interview problem
Given a binary array `nums`, return the maximum number of consecutive 1s.
Tags: scan
Practice this Arrays problem free in the JS Interview Playground with automated tests and unlockable solutions.