title: quotation generator with loop javascript
body: <p>I am working on this quotation generator with loop. The generator has to return a random quote from array 1 + array 2 + array 3 ( like 'love' 'will be' 'your tasks' )but when it gets "peace" "will be" "your start" it has to alert: "you found me".
  the problem i believe is function select.quote that is not working</p>
  
  <pre><code>let array1 = [ " peace " , "love" , " money"];
  let array2 = [ " will be " , "will never be ", "maybe will be"];
  let array3 = [" your end", " your start", "your tasks"];
  
  function finalQuote(...arrs) {
  let quote = '';
  for (let i = 0; i &lt;arrs.length; i++) {
  quote += arrs[i][Math.floor(Math.random() * 3)];{
  return quote;}
  
  select.quote = function(){
  if (arrays){
  if (array1 === 'peace', array2 === 'will be', array3 === 'your end'){
  alert("you found me!");
  }}else{
  let FinalQuote =finalQuote(array1, array2, array3);}}
  
  qt_btn.addEventListener("click", function(event) {
  finalQuote();});
  </code></pre>