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