How come the last condition is executing, instead of the first ? Why isn't the while loop working ?
document.prompt("hello there")
if (i==2 || i==4 ) {
document.write("smart");
while(i>6){
} if(i=8){
document.prompt("can you ask me again");
}}else (i>=9){
document.write("you are a lemon");
}
//document.write(" I want to buy an apple ");