'Visual Studio Code- Console- Typeof Operator - Not Found

I am trying to use the console of Visual Studio Code to use the 'typeof' operator to find the data type. However, when I run the command in Terminal I get zsh:command not found:typeof

Code as follows:

  let name = 'Mosh';
  let age = 30;

The tutorial that I am following, in terminal:

Typeof name <"string"

I have Node.Js and Code Runner installed MacOs system



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source