Just learning to code JavaScript, trying to learn if statements but my code isn\'t working:
var car = 8; if (car = 9) { document.write(\"your code is not wor
This line assigns car to the value of 9 and check if it is truthy (which 9 is).
if (car=9)
I think you want to use a comparison operator, like this:
if(car == 9)