| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 | 4 |
| 5 function log(str) | 5 function log(str) |
| 6 { | 6 { |
| 7 var li = document.createElement("li"); | 7 var li = document.createElement("li"); |
| 8 li.appendChild(document.createTextNode(str)); | 8 li.appendChild(document.createTextNode(str)); |
| 9 var console = document.getElementById("console"); | 9 var console = document.getElementById("console"); |
| 10 console.appendChild(li); | 10 console.appendChild(li); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 1. | 49 1. |
| 50 2. | 50 2. |
| 51 3. | 51 3. |
| 52 | 52 |
| 53 What is the expected output? What do you see instead?</textarea> | 53 What is the expected output? What do you see instead?</textarea> |
| 54 | 54 |
| 55 <ul id="console"></ul> | 55 <ul id="console"></ul> |
| 56 | 56 |
| 57 </body> | 57 </body> |
| 58 </html> | 58 </html> |
| OLD | NEW |