Write a JavaScript function that will:

Write a JavaScript function that will:

More to explore

Based on this image's title: “Write a JavaScript function that will: