Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

A Random Quote Generator

Can someone please comment the link for the video lesson related to this task, thank you in advance for your help:

• Lastly, set the printQuote function to return the full HTML string displaying a random quote.

4 Answers

Hi Karl!

I haven't been able to locate a link to the video, but perhaps these other links can help (example projects):

https://codepen.io/LeeVaughn/pen/eMQLGm

https://jasonrhowie.com/portfolio/random-quote/

More info:

https://www.google.com/search?q=treehouse+techdegree+random+quote+generator&oq=tre&aqs=chrome.3.69i59l2j0i67j35i39j69i60l3j69i65.3521j0j1&sourceid=chrome&ie=UTF-8

I hope that helps (in some way).

Stay safe and happy coding!

Thank you Mr.Peter Vann for your reply.

Lee Vaughn
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Lee Vaughn
Treehouse Teacher

Hey Karl Russell Sumando Menil! Keep in mind that only a small percentage of the folks in the Treehouse forums are enrolled in the Techdgree so most of them aren't going to be familiar with what you are asking about here. Your best bet for Techegree specific questions is to reach out in the Slack group, which you can find a button to on the right side of your Techdegree Home Page.

If you haven't already I would recommend checking out the Study Guide for the project. It has links to videos related to the different aspects of the project, which it sounds like is exactly what you are looking for. You might also check out the Project Walkthrough. It does a great job of breaking down how to approach the project in a step by step fashion. You can find links to both in the Project Resources section, which is on the right side of the Project page.

Break a leg!

Apologies Mr.Lee Vaughn it is not my intention to do that, because i already tried to asked the similar question in one post, and then a person already directed me to slack, and then i asked slacked about it. and they said i should code first, which i truly understand yo tell you the truth i saw in Mr.Peter Vann comment that there are a lot of answers for the project: https://www.google.com/search?q=treehouse+techdegree+random+quote+generator&oq=tre&aqs=chrome.3.69i59l2j0i67j35i39j69i60l3j69i65.3521j0j1&sourceid=chrome&ie=UTF-8, nonetheless i know it is forbidden to copy paste or plagiarize someone's work in which case would not be ethical, that is why i asked it in the form of seperate questions so that i could watch the video links from the course and do it one by one and step by step, without copying from anyone and doing my own work. that was the purpose of the individual post. to code a long with the lecture videos. thank you for your consideration and understanding regarding this matter.

Lee Vaughn Sir, can i humbly asked if you could provide me with the link for the study guide? i could not find it here? thank you for your help.

Hey Karl! Since Lee's answer above would be in reference to the same kind of question you posted multiple times on this day, with the same Title, I have gone ahead and deleted those other posts.

Creating multiple posts like that can often cause some confusion, so we recommend keeping it all in one, as needed, if it's relating to the same topic like that. Also, as Lee mentioned, most Techdegree students will use Slack, rather than the forum, for questions like this. The students who only have access to the forum will not have access to the kind of links or information you're referring to for the Techdegree. We appreciate your understanding!

If you have any further questions about Slack vs. the forum, please feel free to also reach out to us in Support at help@teamtreehouse.com.

Thanks, Karl!

Apologies Ms.Kara Proulx it is not my intention to do that, because i already tried to asked the similar question in one post, and then a person already directed me to slack, and then i asked slacked about it. and they said i should code first, which i truly understand yo tell you the truth i saw in Mr.Peter Vann comment that there are a lot of answers for the project: https://www.google.com/search?q=treehouse+techdegree+random+quote+generator&oq=tre&aqs=chrome.3.69i59l2j0i67j35i39j69i60l3j69i65.3521j0j1&sourceid=chrome&ie=UTF-8, nonetheless i know it is forbidden to copy paste or plagiarize someone's work in which case would not be ethical, that is why i asked it in the form of seperate questions so that i could watch the video links from the course and do it one by one and step by step, without copying from anyone and doing my own work. that was the purpose of the individual post. to code a long with the lecture videos. thank you for your consideration and understanding regarding this matter.

Lee Vaughn
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Lee Vaughn
Treehouse Teacher

Hi Karl Russell Sumando Menil!

Unfortunately, we can't share links to Techdegree specific content in a public forum. As I mentioned in my other post, you can find a link to the Study Guide and Project Walkthrough on the right side of the Project page in the Project Resources section.

As for your other comments, you are right there are plenty of examples of this project that you can find with a little googling but I would encourage you to reach out with any questions you might have in Slack as opposed to looking at another student's project. Not only can that be considered a violation of the academic honesty policy but it also just doesn't make for a good learning opportunity.

I would also encourage you to take things one small step at a time. For example, until you have created your quotes array you don't need to worry about the getRandomQuote function or the printQuote function. Keep it simple and just tackle one specific part of the project at a time testing your code as you go. This will simplify things because then you can focus on trying to figure out the answer to one question instead of trying to figure out several different questions at once. :thumbsup:

Lee Vaughn you are right sir so what if for example i am done with the first step:

var quotes = [ { quote: 'Don’t raise your voice, improve your argument.', source: 'Harvey Specter', citation: 'Suits (American TV series)', year: '2011' },

{ quote: 'Never destroy anyone in public when you can accomplish the same result in private.', source: 'Harvey Specter', citation: 'Suits (American TV series)', year: '2012' },

{ quote: 'Let them hate. Just make sure they spell your name right.', source: 'Harvey Specter', citation: 'Suits (American TV series)', year: '2013' },

{ quote: 'People respond to how we’re dressed, so like it or not this is what you have to do.', source: 'Harvey Specter', citation: 'Suits (American TV series)', year: '2014' },

{ quote: "Sometimes good guys gotta do bad things to make the bad guys pay.", source: 'Harvey Specter', citation: 'Suits (American TV series)', year: '2011' } ];

if i may humbly ask can you give me some hints on how to start the getRandomQuote function ?

thank you.