Menu
support@gradeassitance.com
+1(805) 568 7317

Why wont this javascript code execute?

<!Doctype html> 

<html> 

<title>JavaScript Tutorial</title> 

<body> 

<script language = "javascript"> 

var cleanCities = ["Cheyenne ","Santa Fe ","Tucson ","Great Falls ","Honolulu"]; 

var cityToCheck = "Tucson"; 

if(cityToCheck === cleanCities[i]) 

alert("You are clean"); 

</script> 

</body> 

</html> 

it looks logically and syntactically correct so im not sure what im missing.


"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"GET15"

Order Now