how to open console vscode code example

Example 1: runnig console.log on vs code terminal

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Show in console",
      "type": "shell",
      "osx": {
        "command": "/usr/local/bin/node ${file}"
      },
      "linux": {
        "command": "/usr/bin/node ${file}"
      },
      "windows": {
        "command": "C:\\Program Files\\nodejs\\node.exe ${file}"
      },
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ]
}

Example 2: vscode select terminal

# to select new default shell for the terminal in vs code:
- press F1 in VS Code
- typing/selecting Terminal: Select Default Shell

Example 3: vscode toggle terminal panel

ctrl + ` // Close/open terminal panel