js.l8 code example

Example: js.l8

// (=)				=> x=y.
// (+=)				=> means x = x+1.
// (-+)				=> means x = x-1.
// (*=)				=> means y = y*1.
// (/=)				=> means y = y/1.
// (%=)				=> means y = y%1.
// (**=)			=> means y = y**1.





--------------------------------------------------
// typeof()						// returens type of a variable.
// instanceof()					// returens true if an object is an instance of an object type.


EXAMPLE:
1.console.log(typeof 42);
// expected output: "number"

2.function Car(make, model, year) {
  this.make = make;
  this.model = model;
  this.year = year;
}
const auto = new Car('Honda', 'Accord', 1998);

console.log(auto instanceof Car);
// expected output: true