# Got stuck while doing the "Build a Random Quote Machine" task

**URL:** <https://forum.freecodecamp.org/t/got-stuck-while-doing-the-build-a-random-quote-machine-task/1449>\
**Category:** I Built This\
**Created:** [May 19, 2016, 8:56am UTC](https://forum.freecodecamp.org/t/got-stuck-while-doing-the-build-a-random-quote-machine-task/1449 "2016-05-19T08:56:27Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![tukhtarov](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@tukhtarov](https://forum.freecodecamp.org/u/tukhtarov)\
**Post date:** [May 19, 2016, 1:04pm UTC](https://forum.freecodecamp.org/t/got-stuck-while-doing-the-build-a-random-quote-machine-task/1449/6 "2016-05-19T13:04:28Z")

</div>

I tried to do this:

$.getJSON( "[http://api.forismatic.com/api/1.0/method=getQuote&format=json&key=457653&lang=en&jsonp=?"](http://api.forismatic.com/api/1.0/method=getQuote&format=json&key=457653&lang=en&jsonp=?%22),  
function(json) { console.log(json); }  
);

And I faced an “Uncaught SyntaxError: Unexpected identifier” error.

---

_[View the full topic](https://forum.freecodecamp.org/t/got-stuck-while-doing-the-build-a-random-quote-machine-task/1449)._
