javascript string typing code example Example 1: type javascirpt console.log(typeof 42); Example 2: typeof javascript console.log(typeof 'blubber');