Access last service response within a Javascript handler?

How can I access last service response in a javascript handler?

I have a service (QuizService) that is triggered at page-load; it populates a question-text label and a button group with 4 possible answers; it also contains which button has the correct answer (which I don't display, obviously).

When the user clicks a button, I want to compare it to the correct answer that was retrieved during page-load.

How can I access that service response (text or js-object) from within the javascript button handler?
1 person has
this question
This topic is no longer open for comments or replies.