JavaScript Convention and GetPlayer()

Oct 24, 2012

JavaScript convention holds that functions that begin with a capital letter are constructors.  For example JavaScript Date, Boolean, Array.  

Constructors are all used with "new".  

Examples:

var myDate = new Date(), myBoolean = new Boolean();

Storyline gets off on a bad convention footing by capitalizing GetPlayer as it isn't a constructor function.  Adding  a new function getPlayer would adhere to convention and give back-compatibility as long as GetPlayer remained.

I'm just saying...

4 Replies

This discussion is closed. You can start a new discussion or contact Articulate Support.