Promises exercise

Hi, I’m trying to practice promises. However I’m having a little trouble figuring this out:
Write a function resolveWithValue() that has two parameters:

** The first parameter is a function that returns a promise.*
** The second parameter is a string value.*

When called, resolveWithValue() should invoke the function argument with the string argument and then log the resultant promise’s resolve value or reject reason to the console.

Can somebody please help?

I’m with you, the description of this practice exercise just didn’t make much sense to me. It’s unclear what should make our ‘parameter function’ resolve or reject. The tester function shows a Math.random call, but there’s nothing in the practice assignment that makes it sound like that’s correct?