0

Is there a way to do a console.log('something') in chrome console and have it display a value in chrome console? When I run

console.log('something')

I get undefined. I am trying to write a function into the console and would like it to spit some things out as it runs. Any help would be awesome!

Example:

I paste this into the chrome console window:

    function test(){
      console.log('hi');
    }

then run:

test()

and I get:

undefined

enter image description here

Austin Lovell
  • 1,049
  • 3
  • 17
  • 29

0 Answers0