JSFiddle - React, Tailwind, and code Playground by Pankaj Kargirwar January 08, 2024 JavaScript function f(obj) { obj.i += 1; } const obj = { i: 0 }; f(obj) console.log(obj)