java scriot log code example Example 1: javascript console log console.log('string'); Example 2: log javascript console.log(variable)