0 of 8 problems solved • 0%

Exercise prompt

Add a Parameter

A parameter names a value that a function receives.

Example

function greet(name) { console.log("Hello", name); } greet("Sam"); // Output: // Hello Sam
  • name is the parameter declared in function greet(name).
  • "Sam" is the argument passed by greet("Sam"). During this call, name holds "Sam".

Your task

Complete showStudent so its call displays Student: Mira.