## 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. # Just looking for feedback. Thanks!

```//This is the starting score
var score = 0

/*Start to questions
1. if question is correct, add 1 to score
2. if question is wrong, add 0 to score
*/
var question1 = prompt('What is the operator sign for the Or Operator?')
if ( question1 === '||' ) {
score += 1;
} else {
score += 0;
}
var question2 = prompt('What is the operator sign for Equal to but not Strict?')
if ( question2 === '==' ) {
score += 1;
} else {
score += 0;
}

var question3 = prompt('Is JavaScript the same as Java?')
if ( question3.toUpperCase() === 'NO' ) {
score += 1;
} else {
score += 0;
}

var question4 = prompt('What is the Style language of a Webpage layout?')
if ( question4.toUpperCase() === 'CSS' ) {
score += 1;
} else {
score += 0;
}

var question5 = prompt('How do you convert a string in to a floating number?')
if ( question5 === 'parseFloat()' ) {
score += 1;
} else {
score += 0;
}
/*Depending on the score
1. score is 5, player gets a gold crown
2. score is 3-4, player gets a silver crown
3. score is 1-2, player gets a bronze crown
4. score is 0, no crown is given
*/
if (score === 5 ) {
document.write('Your score is ' + score + ' out of 5.  Well done! You get a gold crown!');
} else if ( score <= 4 && score >= 3 ) {
document.write('Your score is ' + score + ' our of 5. Well done! You get a silver crown!');
} else if ( score <= 2 && score >= 1 ) {
document.write('Your score is ' + score + ' our of 5. You get a bronze crown!');
} else {
document.write('Sorry! You get no crown. Better luck next time!');
}
``` Working code = good job. And I can see that this code would work if it was formatted.
And to prevent line folding and other undesirable changes, always use the instructions for code formatting in the Markdown Cheatsheet pop-up below the "Add an Answer" area. Or watch this video on code formatting.