Hi,

New to javascript.  I'm reading Object Oriented Javascript and need
assistance/inspiration for one of the exercises:

The exercise calls for the creation a constructor function that
creates (among other things) a split method that acts like the String
object's equivalent.  The catch is that we aren't supposed to use any
built-in String functions.  I've been able to replicate several String
methods but this has me stuck.

The code should operate as follows:

var s = new MyString('hello');
s.split('e');

returns ["h", "llo"]


Any ideas suggestions would be appreciated.  Thanks.

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to