Display A tweet for random generated quote

Tell us what’s happening:
The newQuote() is a button to generate new quote and the shareQuote() is to tweet the generated quote. the generated quote is meant to be saved in the variable currentQ but it seems its not. Please can someone go through my code and help me out.

Your code so far

var currentQ = "";
var newQuote = function() {
  var randomNumber = Math.floor(Math.random() * (quotes.length));
  document.getElementById("quoter").innerHTML = quotes[randomNumber];
 currentQ = $("#quoter").text();
}
var shareQuote = function() {
  window.open("https://twitter.com/intent/tweet?text=" + currentQ)
}
**Your browser information:**

Your Browser User Agent is: ```UBrowser/7.0.125.1001 ```.

**Link to the challenge:**
Build a Random Quote Machine | freeCodeCamp
https://www.freecodecamp.org/challenges/build-a-random-quote-machine
https://codepen.io/daxid/pen/aVGVwJ

Your code uses jQuery but it’s not imported in your code.

Thank you so much @kevcomedia
Solved the problem.