how to console javascript code example Example 1: log javascript console.log(variable) Example 2: console log javascript console.log("hello", value);