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:
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:
Line 37 - what is quoteBox
?
I see
$quoteBox
window.open('https://twitter.com/intent/tweet?hashtags=quotes&related=freecodecamp&text=' + quoteBox);
console.log(quoteBox);
Do you see ‘$’? There is a variable which is not declared.
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
Here it is in CodePen: