How to use typeof in if statement in JavaScript?

How to use typeof in if statement in JavaScript?

More to explore

Based on this image's title: “How to use typeof in if statement in JavaScript?