hettlage (133) [Avatar] Offline
#1
There are some minor issues with listing 30.4:

  • The file name chatController.js in the title ("Adding a chat action in chatController.js") is incorrect.

  • The displayMessage function expects an object { content: ... } as argument, but actually a string is passed.

  • The displayMessage function adds a li element to a div (not ul or ol) element, which presumably results in invalid html.
  • TheWexler (56) [Avatar] Offline
    #2
    Thank you for these comments. I've fixed the listing headings, changed the passed argument in the function, and removed the addition of a list item. Your discoveries are really appreciated!