Random Quote


Display a random quote on click of a button.


March 2016

tools used

HTML, SCSS & jQuery


Using mvc pattern to separate concerns within the code. Store quotes in an array, link these quotes to the dom and display a random quote from the array on click of a button. Each quote can be sent as a tweet to twitter on click.


Storing strings in arrays. Generating a random number. Selecting a random array item. mvc pattern. Linking strings to a tweet.

See the Pen Random Quote Generator by Harry Beckwith (@fun) on CodePen.

← Back to all projects