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 triala k
2,880 PointsHow 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
Samuel Webb
25,370 PointsThree 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(~)
a k
2,880 PointsThanks. It is working.
Liliana Leyva
3,711 Pointstesting
Enyel Cuadro
12,884 Points<div></div>
Patrick Bluth
13,285 Points//TESTING
public static void main(String[] args){
System.out.println("Hello world.");
}
Konrad S
480 Points// TEST
let query = prompt("What color the moon is?");
if (query === 'white') {
alert("Correct answer");
} else {
alert("Let's try again!");
}