Console.log in javascript

Why when I write console.log(“something”) in the js page it does not show anything in the preview pane?

could be a bug. did you try doing that on a different project?

console.log goes to the browser console, not to the rendered web page

here’s how to open the dev tools to see the browser console

2 Likes

unless i misunderstood, it’s not supposed to be rendered. perhaps you mean something else?

if you want it to write to the document you can use

document.write("dsadasdasdasdas");
2 Likes

oh shoot, did op mean that adding a console.log makes the whole preview go blank? :face_with_raised_eyebrow:

this worked, thank you very much

2 Likes