From 9df95619eeacd2fddbfc3be9648561403d6a4570 Mon Sep 17 00:00:00 2001 From: Himanshu Singh Date: Tue, 14 May 2019 17:12:21 +0530 Subject: [PATCH] Order mismatch Answer is 1 and 3. Whereas in the solution 1 and 2 show the same result due to different order. --- .../1-createtextnode-vs-innerhtml/solution.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md b/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md index 93ae862f..a38f0164 100644 --- a/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md +++ b/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md @@ -12,7 +12,7 @@ Here's an example: let text = 'text'; elem1.append(document.createTextNode(text)); - elem2.textContent = text; - elem3.innerHTML = text; + elem2.innerHTML = text; + elem3.textContent = text; ```