Jump to content
Larry Ullman's Book Forums

Khai

Members
  • Posts

    2
  • Joined

  • Last visited

Khai's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Never mind, I solved it. I had to change the assignment of the output.innerText to message instead of numbers. Don't understand why It said to assign it to numbers though.
  2. Hello! I'm loving this book on Javascript. It was given to me and probably the best book I've read on javascript! (I'm still new at it) Although, I seem to be having a problem that I cant seem to figure out. You know the exercies sorting an array with a user defined function? Well in the setText() function I was creating the IF statement for the elementId and message. if( (typeof elementId == 'string') && (typeof message == 'string')){ var output = $(elementId); if(output.textContent !== undefined){ output.textContent = numbers; } else { output.innerText = numbers; } } The problem is that the output.textContent and the innerText that are assigned to numbers doesn't seem to work! The "numbers' don't seem to be assigned to a value. As it says "Unresolved variable or type." This happened in the last exercies I did with the modefied days.js. Any help would be awesome! Thanks
×
×
  • Create New...