JSFiddle - React, Tailwind, and code Playground

by Maxim_Wolf

JavaScript

const buffer = {
  a:2,
  add: function(b){    
    console.log(this.a + b)
  }
}

const point = {...buffer};
point.a = 5;


point.add(40);
buffer.add(40);

const form = {add: point.add};