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