access a javascript variable from console code example Example: print javascript variable in console console.log(p);