I am new to coding. I am receiving this error: "Missing "Use strict" statement" in my Javascript code. Here is my code:
$(function(){
    $('.nav-toggle').on('click',function(){
        $('.main-nav').toggleClass('open');
    });
});
I do not know where to put 'use-strict';.
Where do I put the statement?
 
     
     
     
    