6/11 "console.log is not a function"


#1

Here's the code

var loop = true;

var soloLoop = function(){
while(loop) {
console.log("Looped once!");
loop = false;
}
};
soloLoop();


#2

nothing wrong with this code, works fine when i test it


#3

THAT'S WHAT IT SEEMS LIKE FROM WHAT I'VE BEEN READING

Smh


#4

This error occurs when you tried console.log = (value) and pressed submit. In this case console.log is overwritten with the value and therefor no longer a function. To get rid of this you can just refresh the page and hit submit again. Does not help if there are any real errors but in your case resetting the JS by refreshing the page should do the job.


#5

that worked, thanks!