aaronoafc
10-09-2012, 07:47 PM
Hi,
I'm just looking over some JavaScript tutorials which im running quick tests in firebug within firefox.
When I type in var phrase = "This is your phrase";
var words = phrase.split(" ");
and select run in firebug shouldn't the variable phrase be split up into an Array? or am I missing something here? Because at the minute I just get this:
>>> var phrase = "This is your phrase"; var words = phrase.split (" ");
undefined
Thanks
I'm just looking over some JavaScript tutorials which im running quick tests in firebug within firefox.
When I type in var phrase = "This is your phrase";
var words = phrase.split(" ");
and select run in firebug shouldn't the variable phrase be split up into an Array? or am I missing something here? Because at the minute I just get this:
>>> var phrase = "This is your phrase"; var words = phrase.split (" ");
undefined
Thanks