create a count function
2022年5月1日小于 1 分钟
create a count function
Question
Please create a function count()
, when called it should return how many times it has been called, count.reset()
should also implemented.
count() // 1
count() // 2
count() // 3
count.reset()
count() // 1
count() // 2
count() // 3
Code
// your code here