I'm trying to get the bigger score to print, it works for numbers until 10, however for a reason unclear to me numbers above 10 do not work as expected, with for example firstScore being 10 and secondScore 5, yet it would print 5 instead of 10.
var firstScore = prompt('First exam score?');
var secondScore = prompt('Second exam score?');
if (firstScore > secondScore) {
console.log(firstScore);
} else if (secondScore > firstScore) {
console.log(secondScore);
} else {
console.log('Wrong parameter');
}