javascript console.log print with variables ${} code example Example: print javascript variable in console console.log(p);