Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Jeremi Watabiki
Jeremi Watabiki
4,833 Points

How to include a workspace snapshot in forum posting?

I always see people posting questions or responses by including a snapshot of a SublimeText-looking workspace -- how are they doing this?

Also, what is Forking? Is it just another name for "Save"?

1 Answer

Rob Allessi
seal-mask
.a{fill-rule:evenodd;}techdegree
Rob Allessi
Front End Web Development Techdegree Student 8,599 Points

Howdy Jeremi! Sounds like you're confusing someone sharing a snapshot of their Workspace and submitting a section of code using Markdown as the same thing.

For information on sharing a snapshot of your Workspace with others, please see this thread: https://teamtreehouse.com/forum/workspace-snapshots

Forking makes a copy of your Workspace, so you can try different things based on an existing Workspace project without it being overwritten.

For posting a portion of your code using Markdown, please see the video to the right hand side of this post under "Tips for asking questions" and/or clicking on the link below titled Markdown Cheatsheet

Jeremi Watabiki
Jeremi Watabiki
4,833 Points
//-----------User Questions


var Q1 = prompt('What is my birthday?');
var Q2 = prompt('What is my favorite color?');
var Q3 = prompt('What is my favorite kind of food?');
var Q4 = prompt('What is my favorite sport to watch?');

var score = 0;


//-----------Correct Answers


if (Q1 === '10/29' || Q1 === '10-29' || Q1.toUpperCase() === 'OCTOBER 29') {
  score += 1;
}

if (Q2.toUpperCase() === 'GREY' || Q2.toUpperCase() === 'GRAY') {
  score += 1;
}

if (Q3.toUpperCase() === 'SUSHI') {
  score += 1;
}

if (Q4.toUpperCase() === 'FORMULA ONE' || Q4.toUpperCase() === 'F1') {
  score += 1;
}


//-----------Awards

if (score === 4) {
  document.write('<h2>Whoop, whoop! You got ' + score + ' right!</h2>'); 
}

else if (score === 3) {
  document.write('<h2>Not bad, you got ' + score + ' right.</h2>');
}

else if (score === 2) {
  document.write('<h2>Seriously, you better try harder next time. You got a whopping ' + score + ' right!</h2>');
}
else if (score === 1) {
  document.write('<h2>We are not on speaking terms right now. Take your ' + score + ' right answer and shove it!</h2>');
}

else if (score === 0) {
  document.write('<h2>I hate you. Your score is = ' + score + '.</h2>');
}

YAY it worked!! Thanks so much!