how to check type in javscript code example Example 1: type javascirpt console.log(typeof 42); Example 2: typeof javascript console.log(typeof 'blubber');