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
use this code
var car = 8; if (car==9) { document.write("your code is not working") }
you need to understand about operators '=' is an assignment operator whereas '==' is a comparision operator.
See Tutorial