This is your perfect car:
$score) {
echo "$carname, $score
";
if($score > $maxscore) {
$bestcar = $carname;
$maxscore = $score;
echo"new best: $bestcar
";
}
}
echo "Best: $bestcar, $maxscore
";
$bestcar === Math.max($suburban,$prius,$humvee,$a8,$smart,$juke,$x4,$gtr);
if($bestcar == "gtr") {
echo "The Nissan GTR!";
}
else if($bestcar == "suburban") {
echo "The Chevrolet Suburban!";
}
else if($bestcar == "juke") {
echo "The Nissan Juke!";
}
else if($bestcar == "smart") {
echo "The Smart Fortwo!";
}
else if($bestcar == "prius") {
echo "The Toyota Prius!";
}
else if($bestcar == "a8") {
echo "The Audi A8!";
}
else if($bestcar == "x4") {
echo "The BMW X4!";
}
else if($bestcar == "humvee") {
echo "An ex-military Humvee!";
}
else {
echo"The VolkSWAGen Golf!";
}
?>