Jquery Random quote generator help (solved)

Hello everyone, I am using jquery to create my random quote machine. Things are going well however I can’t seem to get the button to work. Analyzing the code gives me the error “undefined (”
So i know there’s a missing “(” I’ve been looking for a good 20 minutes and I can’t find it.
Please and thank you.

$(document).ready(function(){
  
  function getQuote() {
    var quotes = [my quotes are here];
    var author= [authors are here];
    
    var randomNum = Math.floor((Math.random()*quotes.length)); 
    var randomQuote = quotes[randomNum];
    var randomAuthor = author[randomNum];
    
     $(".quote").text(randomQuote);
     $(".author").text(randomAuthor);
    
 $(".btn").on("click", function(){
    getQuote();
  });
  )};

The last line! switch the ) and }

I am still getting the same errors after switching

(".btn").on("click", function(){
    getQuote();
  });
  });

indent your click handler

  $(".btn").on("click", function(){
    getQuote();
  });

add a } to right before your last line
and then close out your `ready handler with

});

So

$(document).ready(function(){
  function getQuote() {
    $('.btn').on('click', function() {
    });
  }
});

unless you want the btn click handler on the outer scope of getQuote. in that case

$(document).ready(function(){
  function getQuote() {
    
  }
  $('.btn').on('click', function() {
  });
});

You know what you’re doing. I’ve done the changes and now I’m only getting one missing “(” error

$('.btn').on('click', function() {
  getQuote 
    });
});

It’s right here.

And the author part is working, the quote is not changing but it’s something!

@Imstupidpleasehelp
actually this is probably a cleaner solution

$(document).ready(function(){
  function getQuote() {
    
  }
  $('.btn').on('click', getQuote);
});

Fixed! Thanks for your help!
The quotes still aren’t working, but I can figure that out on my own. Thanks for your expertise, man