Exercise: A Simple Modification

Practice how to emit the events and count number of ticks right after invoking the function.

Problem statement

Modify the function created in the “Exercise: Ticker” lesson so that it emits a tick event immediately after the function is invoked.

Coding challenge

Write your solution code in the following code widget. We’ve already added the package.json file for your ease.

Get hands-on with 1400+ tech skills courses.