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