LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   javascript object prefixed with dot? (https://www.linuxquestions.org/questions/programming-9/javascript-object-prefixed-with-dot-4175418289/)

ShaqDiesel 07-23-2012 03:46 PM

javascript object prefixed with dot?
 
Is this javascript code valid?

return .objectName.methodName()

what does the '.' behind the objectName do?

dugan 07-23-2012 03:51 PM

Quote:

Originally Posted by ShaqDiesel (Post 4736196)
Is this javascript code valid?

Of course not. What prompted this strange question?

ShaqDiesel 07-23-2012 05:16 PM

I saw this in some code. Thanks, this confirms my suspicions that this is a bug.


All times are GMT -5. The time now is 03:11 AM.