Codington
0 of 6 problems solved • 0%

Exercise prompt

Write an Arrow Function

An arrow function uses => between its parameters and body.

Example

const showReady = () => { console.log("Ready"); }; showReady(); // Output: // Ready
  • const showReady = () => { ... } creates a function with no parameters and stores it for later use.
  • showReady() calls it and runs the body.

Your task

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