Guest User

Untitled

a guest
Jan 13th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Fix as many errors in the following JavaScript code as you can:
  2.  
  3. // Create an array of names
  4. var names = array("Peter", "Paul", "Mary");
  5.  
  6. // Display a list of the names:
  7. echo(<ul>);
  8. for (var i=o; i<names.count, j++) {
  9. echo '<li>' . names[i]):
  10. }
  11. echo </ul>
  12.  
  13. // Append a name to the list of names:
  14. names.append("Lemon Tree');
Add Comment
Please, Sign In to add comment