how to put a string in a console log javascript code example Example: javascript log to console const varName = 'this variable'; console.log(varName);