Hi there. I’ve finished my random quote machine. When I finished with it, I was initially please with the result. It worked well (or so I though), but under more thorough examination it seems to have a number of significant problems:
Firstly, I couldn’t figure a way to remove the quotation symbols from around the originator of the quote. I tried .replace but to no avail.
Secondly, it appears that the quotes seemingly aren’t refreshed when I share the code with other people… Could anyone she any light on this?
Thirdly, if there is no author returned ("") with the JSON, my if statement doesn’t catch this. Is there a way to make the if statement work? I tried assigning it to a variable, but again to no avail.
I had a look at the example quote machine and saw that it used an AJAX implementation?