Review:What is wrong with this code?Please help


#1

for(var i=0;i<3;i++){
console.log[i];
}

var condition=true;
while(condition) {
colsole.log("Hello");
condition=false;
}

var loopCondition = false;
do{console.log("I'm printing once");
}
while(loopCondition);


#2

console.log is a function. You call it with () instead of [] (line 2)