JSFiddle - React, Tailwind, and code Playground

by Pankaj Kargirwar

JavaScript

function f(obj) {
obj.i += 1;

}

const obj = {
	i: 0
};

f(obj)
console.log(obj)