JSFiddle - React, Tailwind, and code Playground

by MuLtDirectX

JavaScript

function  count (number, step) {
	return function(){
  	return number+=step
  }
}

let func = count(10, 3)
console.log(func())
console.log(func())
console.log(func())