Possible Duplicate:
Why can't I access a property of an integer with a single dot?
I was reading an article, and came across the strange behaviour of javascript toFixed method. I don't understand the reason for the last statement. Can anyone explain please?
(42).toFixed(2);
// "42.00" Okay
42.toFixed(2);
// SyntaxError: identifier starts immediately after numeric literal
42..toFixed(2);
// "42.00" This really seems strange