Just a Minute explainer

The aim of this puzzle: Use an imported function as a callback.

Walkthrough of the solution: The solution to this puzzle is similar to the previous ones. The only difference is that the callbacks aren’t declared in code, but they aren’t entirely in hidden code either. The 1st line is an import statement. An import can access data or functions from another location. In this case, clockActions, which would be the name of another file.

To snooze the reminder, you call the clockAction() function, and use a number of minutes and the snoozeReminder callback.

Sample code solution:
(Tap below to reveal)

import { setTimer, snoozeTimer, setReminder, snoozeReminder } from 'clockActions';

function clockAction(time, type) {
  console.log('Clock opened...');

clockAction(10, snoozeTimer);
clockAction(5, snoozeReminder);

JavaScript Concepts: console.log(), Callback Functions, import, Function Declarations
Additional Code (hidden code that runs before the puzzle’s code):

let setTimer = minutes => {
   console.log(`A ${minutes} minute timer has been started`);
let snoozeTimer = minutes => {
   console.log(`The timer has been snoozed for ${minutes} minutes`);
let setReminder = time => {
   console.log(`Scheduled a reminder for ${time}`);
let snoozeReminder = minutes => {
   console.log(`The reminder has been snoozed for ${minutes} minutes`);

Hi, I don’t understand the line “type (time)” command. Hope can help me. Thxs