JSFiddle - React, Tailwind, and code Playground
by Artem
JavaScript
//'use strict';
Boolean.prototype.a = 12;
let foo = true;
let bar = 'hello';
console.log(Object.getOwnPropertyDescriptor(Boolean.prototype, 'a'));
foo.a = 5;
console.log(foo.a);
by Artem
//'use strict';
Boolean.prototype.a = 12;
let foo = true;
let bar = 'hello';
console.log(Object.getOwnPropertyDescriptor(Boolean.prototype, 'a'));
foo.a = 5;
console.log(foo.a);