console log javascript 1:a|2:b code example Example: javascript log to console const varName = 'this variable'; console.log(varName);