Js issue: Sticky Nav won't work with Hamburger menu

individually they work fine but when put together something is causing them not to work at the same time. I will only have one to function while the other one will not work at all, I need some help please!!!

//hamburger portion
$(’.hamburger’).on(‘click’, function(){

//stickyNav Portion
var navOffset = $(‘nav’).offset().top;


var scrollPos = $(window).scrollTop();

if(scrollPos >= navOffset){