JSFiddle - React, Tailwind, and code Playground JavaScript var count = 0; function foo(){ console.log( ++count ); } foo(); // 1 foo(); // 2