Create Simple Variables in JavaScript

Easy
22
73.7% Acceptance

In this lab, you'll practice creating JavaScript variables with different data types. You have to create four variables, each containing distinct data types:

  • A variable with the name num of type number
  • A variable with the name str of type string
  • A variable with the name bool of type boolean
  • A variable with the name arr of type array.