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 working")
}
This executes the write command and I have no idea why. I'm using the tab button for indents, is that not allowed?