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

Exercise prompt

Use an Arrow Parameter

Arrow-function parameters are written inside the parentheses before =>. A block body can return a result with return.

Example

const double = (number) => { return number * 2; };

Your task

Complete makeGreeting so makeGreeting("Mira") returns Hello, Mira! and the console displays that message.

Hint

A template literal can combine fixed text with the parameter.