JS: Boolean (class)
What is the keyword โBooleanโ
Purpose of Boolean is:
- A Primitive Value object wrapper.
- Implicitly called by JavaScript to convert value to boolean primitive. e.g. in a if-statement.
- Holds the property key
"prototype". Its value is the parent of all primitive boolean objects.