<script>
console.log(‘Hello world!’);
</script>
This snippet will output the text ‘Hello world!’ to the log and will only be seen if you manually look into the webpage console.
So far we have seen many lines of JavaScript code, just like this: