JSFiddle - React, Tailwind, and code Playground

by A A

JavaScript

/* const a = {part: 5};
const b = {part: 10};
const c = {...a, ...b, b};
b.part = 7;
console.log(c) */

Object.prototype.a = 10;

function test() {
	console.log(this.a, this.b);
  (() => {
  	this.a = 5
	})();
  (function() {
  	this.b = 7
  })()
}

const Test = new test();

console.log(Test.a, Test.b)