Add Text To UI Panel on Button Click

Hello! I am extremely new to Unity.

My panel is called displayText. My Button is called Age Button.

Basically, I am trying to write a script that, if a button is clicked, the the text ["Age: " + age] will show in the displayText panel. The script is below:

Afterward, I added the script to the button, but it would not show the function. Do I need to do anything to the panel?

If you need more pictures, let me know!

@shsearle13
I hope you dragged the “AgeButton” Game Object into “OnClick()” as I did in the attached screenshot.
If you already did that then could you please share the screenshot of your Inspector window.

Thanks,
Mitu