## 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!

### 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.

# Hey! Here's my quiz.. LF feedback :)

Hi guys! this is my solution.. thank you for your feedback!

```// general knowledge quiz

var score = 0;

/*

1. Prompt the user the question.
2. Transform user input to lowercase and check if the answer is correct.

*/

// First Question
var question1 = prompt("First Question: Which Olympic sport takes place in a velodrome?");

if ( question1.toLowerCase() === 'cycling' ) {
score++;
} else {
}

// Second Question
var question2 = prompt("Second Question: Prior to joining the euro, what was the currency of Spain?");

if ( question2.toLowerCase() === 'peseta' ) {
score++;
} else {
}

// Third Question
var question3 = prompt("Third Question: In terms of area, what is the largest country in South America?");

if ( question3.toLowerCase() === 'brazil' ) {
score++;
} else {
}

// Fourth Question
var question4 = prompt("Fourth Question: Brie and Camembert are types of which food?");

if ( question4.toLowerCase() === 'cheese' ) {
score++;
} else {
}

// Fifth Question
var question5 = prompt("Fifth Question: Which joint connects the foot to the leg?");

if ( question5.toLowerCase() === 'ankle' ) {
score++;
} else {
}

/*

1. Check user score.
5 points = Gold Crown
3-4 points = Silver Crown
1-2 points = Bronze Crown
0 points = No crown
*/

if ( score === 5 ) {
alert( 'You have got ' + score + ' answers correctly. You won the Gold crown! Congratulations.' );
} else if ( score >= 3 ) {
alert('You have got ' + score + ' answers correctly. You won the Silver crown! Congratulations.');
} else if ( score >= 1 ) {
alert('You have got ' + score + ' answers correctly. You won the Bronze crown! Congratulations.');
} else {