Examples:
let car = "Honda";
typeof car; //this line returns "string" because the value of car is a string
let x, y;
let equation = x + 5 / (6 * y) + 17;
typeof equation; //this line returns "number" because the value returned from evaluating the equation is a number
Operator: delete
Examples:
let pet = {name:"Macy", species:"Dog", age:5, attribute:"fluffy"};
delete pet.age; // removes the age property from the pet object
Operator: in
Examples:
pet = {name:"Macy", species:"Dog", age:5, attribute:"fluffy"};
"name" in pet; // returns true because the pet object has a property called "name"
See the Pen Exercise 2.6 by LSU DDEM (@lsuddem) on CodePen.