Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

The question was inspired by the following post in Russian Software Developers Networks: http://rsdn.ru/Forum/Message.aspx?mid=2047058&only=1 . The text above first code snippet in English: "We got one project with the following legacy code..."



Besides being a good candidate for DailyWTF column, this code snippet provokes a question: how much effort is necessary to verify that supplied string is in fact Number? So here is one-question quiz for JavaScripters.How many characters you need for <expression> to verify that variable s holds a 'number' as content?



Please submit your answers to my alternate e-mail (see business card). Post only number of characters you used in comments!



I'm neither Craig nor Mark. So do not expect t-shirts or iPods 😉

12 Comments