The basic data types in JavaScript are:
boolean: a boolean value, either true or falsestring: a sequence of charactersnumber: represents both integer and floating-point (fractional) numbersundefined: a variable that has not been assigned a valueThere are a few others of course, but we'll cover those as they come up.
There are several ways to declare variables in JavaScript, and we'll talk about some of the better ways in a second, for now, let's do it the old way. Here are some examples of variables with the types we just discussed:
var isTall = true;
var isCool = false;
var name = "Alice";
var age = 42;
var weight = 150.5;
var brainSize = undefined;
The undefined value is a special value in JavaScript that represents the absence of a value.
Assign values to the given variables so that:
smsSendingLimit is a numberhasPermission is a booleanusername is a stringnothing is undefined