From 536fe281623ce4853de58d5ab900bdc6c04f5569 Mon Sep 17 00:00:00 2001
From: The Coding Aviator <34807532+thecodingaviator@users.noreply.github.com>
Date: Wed, 6 Feb 2019 19:21:59 +0530
Subject: [PATCH] Update
get-json-with-the-javascript-xmlhttprequest-method.english.md (#34408)
---
...et-json-with-the-javascript-xmlhttprequest-method.english.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/get-json-with-the-javascript-xmlhttprequest-method.english.md b/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/get-json-with-the-javascript-xmlhttprequest-method.english.md
index 20c348080b..8f649e3208 100644
--- a/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/get-json-with-the-javascript-xmlhttprequest-method.english.md
+++ b/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/get-json-with-the-javascript-xmlhttprequest-method.english.md
@@ -36,7 +36,7 @@ tests:
- text: Your code should use the send
method to send the request.
testString: assert(code.match(/\.send\(\s*\)/g), 'Your code should use the send
method to send the request.');
- text: Your code should have an onload
event handler set to a function.
- testString: assert(code.match(/\.onload\s*=\s*function\(\s*?\)\s*?{/g), 'Your code should have an onload
event handler set to a function.');
+ testString: assert(code.match(/\.onload\s*=\s*function\s*?\(\s*?\)\s*?{/g), 'Your code should have an onload
event handler set to a function.');
- text: Your code should use the JSON.parse
method to parse the responseText
.
testString: assert(code.match(/JSON\.parse\(.*\.responseText\)/g), 'Your code should use the JSON.parse
method to parse the responseText
.');
- text: Your code should get the element with class message
and change its inner HTML to the string of JSON data.