RANDOM QUOTE MACHINE Pt. 1/3 (JavaScript) | FCC Intermediate Front End Projects

Опубликовано: 01 Март 2026
на канале: CodeWithNick
3,696
29

In Part 1 we will deal with setting up our JavaScript files to contain a list of quotes and serve them randomly.

0:00 - Intro.
1:14 - Creating a data structure
5:44 - Adding global variables in a browser
5:44 - Creating a "random quote" function.
7:07 - Creating a function to change the quote.
9:45 - Displaying a quote in the HTML (event listeners).
16:55 - Preventing duplicate "random" quotes.

*View the project here: http://codepen.io/nickpalenchar/pen/e...
Codepen - www.codepen.io
jQuery CDN - code.jquery.com