Need some help with my Random Quote Generator jQuery

Need some help with my Random Quote Generator jQuery
0

#1

I am trying to get the click event to work. It used to work before I added fadeToggle but now it’s failing and I am not sure why.

Here is the code:

https://jsfiddle.net/trwhite6878/fwc5m1jk/2/


#2

Line 37 - what is quoteBox?


#3

I see

$quoteBox

	window.open('https://twitter.com/intent/tweet?hashtags=quotes&related=freecodecamp&text=' + quoteBox);
		console.log(quoteBox);

#4

Do you see ‘$’? There is a variable which is not declared.


#5

I declared the variable. It opens Twitter but I get the [Object object] error as the entry. Console said post is not defined and $quoteBox is not defined but I don’t see where it isn’t. @xavierartot

https://jsfiddle.net/trwhite6878/n6t23mtt/7/


#6

Here it is in CodePen: