how to print js variable in console code example Example: print javascript variable in console console.log(p);