MCQs > IT & Programming > Ajax > For the code fragment below function foo() { var httpRequest = new XMLHttpRequest(); httpRequest.open('GET', '/echo/json'); httpRequest.send(); return httpRequest.responseText; } var result = foo(); What will be the value of ‘result’

Ajax MCQs

For the code fragment below function foo() { var httpRequest = new XMLHttpRequest(); httpRequest.open('GET', "/echo/json"); httpRequest.send(); return httpRequest.responseText; } var result = foo(); What will be the value of ‘result’

Answer

Correct Answer: Undefined

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ajax Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ajax Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it