Nalini1998 / Project_Public

MIT License
2 stars 0 forks source link

Theory: Using Object to create Boolean objects #564

Closed Nalini1998 closed 1 year ago

Nalini1998 commented 1 year ago

The following examples store Boolean objects in o:

script.js

// equivalent to const o = new Boolean(true)
const o = new Object(true);

script.js

// equivalent to const o = new Boolean(false)
const o = new Object(Boolean());