Codington
0 of 6 problems solved • 0%
Use in a course

Exercise prompt

Write an Arrow Function

An arrow function stores a function in a variable and uses => between its parameters and body.

Example

const showReady = () => { console.log("Ready"); }; showReady();

The call works like the function calls from the previous module.

Your task

Complete showGreeting so its existing call displays Hello from an arrow.