3 ms·
Well atleast the guy training others in the opening picture needs to :-). He is mixing cases in javascript (defined TXT and doing txt.toLowerCase()). Perhaps an
by npalli 13y ago
Well atleast the guy training others in the opening picture needs to :-). He is mixing cases in javascript (defined TXT and doing txt.toLowerCase()). Perhaps an HTML dude who is doing javascript.
- warmwaffles 13y agoglad I wasn't the only one who spotted this.
- nlh 13y agoHeh - I spotted the same thing and immediately assumed, perhaps naively, that he was pointing to an example of something that was a mistake ;)
- da02 13y agoThere's also the use of document.writeln. I'm no JS expert, but... I thought that was a big NO-NO.
- cruise02 13y agodocument.writeln is generally frowned upon in production code since there are better ways to manipulate a page using the DOM. I still see it used occasionally for debugging (although even that usage is disappearing, as most browsers have some form of debug console available) and in tutorials and books for beginners. Here's a Stack Overflow post that outlines some of its pros and cons. http://stackoverflow.com/q/802854/1288 http://stackoverflow.com/q/802854/1288