text: function getOperator(){return $.ajax({type:"GET",url:"/subtraction/operator",timeout:10000,success:function(a){operator=a},error:function(a){}})}function getOperand2(){return $.ajax({type:"GET",url:"/subtraction/operand2",timeout:10000,success:function(a){var2=a},error:function(a){}})}function getOperand1(){return $.ajax({type:"GET",url:"/subtraction/operand1",timeout:10000,processData:false,success:function(a){var1=a},error:function(a){console.log(a)}})}function getAnswer(a){return $.ajax({type:"POST",url:"/subtraction/answer",timeout:10000,contentType:"application/json",data:encodeURI(JSON.stringify({answer:a})),processData:false,success:function(b){output=b},error:function(b){console.log(b)}})}function getTotalAnswersValue(){return $.ajax({type:"GET",url:"/subtraction/score/totalAnswers",timeout:10000,success:function(a){totalAnswers=a},error:function(a){console.log(a)}})}function getCorrectAnswersValue(){return $.ajax({type:"GET",url:"/subtraction/score/correctAnswers",timeout:10000,success:function(a){correctAnswers=a}})};