Why my code correctly but it's error?

If your code fails the tests, it’s not correct ;) Your function does not return the expected value. You may want to use the ... menu to reset the exercise then follow the instructions from the introduction video.

In the future, please use codeblocks to share text. Please do not use images to share text.

1 Like

Take note of the “TEST FAILURE” error message. It’s telling you that the test expected to receive the text “Hello, World!” but invoking your function returned null instead.

Follow Isaac’s advice to reset the exercise and try it again.