Declare JavaScript Variables
Summary
- JavaScript provides eight different data types which are
undefined
, null
, boolean
, string
, symbol
, bigint
, number
, and object
. - Variables allow computers to store and manipulate data in a dynamic fashion.
- Variables are defined by using
var
and the custom variable name (var ourName;
). - Variable names can be made up of numbers, letters, and $ or _, but may not contain spaces or start with a number.
Final Code