While looking at the code, there is (); at the bottom. Can someone tell me what those are called and why is it there?
Below is part of the code. Unfortunately, the rest is too long. I don't want to waste your time on the rest of the code.
  $(window).on('hashchange', function (e) {
      var i = 1;
      setTimeout(function run() {
          //console.log(i + ':hello number');
          if (i < 20) {
              setTimeout(run, 500);
              initstu10msg()
          }
          if (i >= 20) {
              //console.log('msgak');
          }
          i++;
      }, 100)
  }).trigger('hashchange');
  })();
