console get value in javascript code example Example: print javascript variable in console console.log(p);