Implement a function that takes one or more values and returns a function. Every time you call the returned function, it should cycle through the provided values.
For example:
cycle('hello'), the returned function will always return "hello".cycle('on', 'off'), the returned function will return "on" the first time, "off" the second time, then "on" again, and so on.JavaScript Function
No test results yet
Click "Run" to execute tests