JavaScript Close on Click

Hi ,
I have this nav-bar .
I have managed to make it work on outside click with the help of somebody but I would like it to close after I click on About for example and I have no idea how I should do that.
Keep in mind that I an now to coding and JavaScript is my worse nightmare. :smiley:
Thanks !

Is this what you meant?

// Handle close bar
const closeNavbar = () => {

// Toggle hamburger animation
const toggleHamburgerBtn = () => {

// Handle change link
const changeLink = () => {
  $('.nav-links a').on('click', () => {
1 Like

Yess !! And I understend it too hahah .Ā 

Sorry , I am new to coding and I get excited when I understend stuff :DĀ 

1 Like