Accessing the response variable on the AJAX panel

Using it at the angular template is clear (see image)
but how do I use it at the script area? what is the syntax?

Can you help the community understand this a little better? AJAX panel?