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

CSS How to Make a Website Responsive Web Design and Testing Website Testing

How do I add code snippet to the question?

How to add the code snippet in description of the question? Thanks.

function code(){
  //Go to edit this question to see exactly how I formatted this -Sam
}

6 Answers

Three back ticks before, and three after. Make sure they're on their own line. The back tick is on the same key as the tilda(~)

Thanks. It is working.

testing

<div></div>

//TESTING
public static void main(String[] args){
    System.out.println("Hello world.");
}
// TEST
let query = prompt("What color the moon is?");
  if (query === 'white') {
    alert("Correct answer");
  } else {
    alert("Let's try again!");
  }