I have a problem with my javascript code.
numbercars.js
var cars = {
chan1:'',
number:'2';}
index.html
<html>
<head>
<script type="text/javascript" src="numbercars.js"></script>
<script>
var numbercars = cars.number;
if (numbercars =<9){
//My action
}
else{
//My second action
}
</script>
</head>
<body>
HTML CONTENT
</body>
</html>
But this statement didn't work, all time, it's else.
Can you, if you can, tell me where is my error, i didn't understand.
Thank you