Tuesday, July 19, 2011

How do you do multiple ORs in Javascript?

I need to be able to do this: if (getFileExtension(fileImage) == '.jpg' || '.jpeg' || '.png' || '.gif' ), how would I do it using the correct syntax?

No comments:

Post a Comment