This article shows how to use Bootstrap Navigation Bars with a Toggle Button.
Voice of a Developer: JavaScript From Scratch