Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About AlexanderYu

  • Rank
  1. Also on P121: ----- 7. Add an event listener to the form: function init() { ‘use strict’; document.getElementById(‘calcForm’).onsubmit = formatNames; } // End of init() function. ------ The code in Step 7 should actually refer to the element with an id value of theForm, which is what the corresponding downloadable code uses.
  2. Got it, thanks Larry. As I am continuing reading Chapter 4, I found an additional '(' on P113: "Thanks to the ability to chain object notation, this could be reduced to one line: if ( (document.getElementById(‘email’).value.length > 0) { ... " This line of code has an extra opening parentheses before (document.getElementById...
  3. Hi Larry, Your book is great!I am reading it and practicing it. Well, I think there is one small English language issue on Chapter 3, P81 "In a word, logical errors are bugs, commonly caused by the code doing exactly what you told it to....." I guess usually the phrase 'in a word' is just followed by a word, not a long sentence, right? Alex
  • Create New...