Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
class StringSplitter
{
    splitString( stringToSplit )
    {
        var result = [];

       var tempResult = stringToSplit.split( ',' );
        
        console.log( tempResult );
         if( tempResult[0]stringToSplit.length > 10 )
            result = tempResult.push(stringToSplit);

        return result;
    }

}

Phase 3

...

Code Block
class StringSplitter
{
    splitString( stringToSplit )
    {
        var result = [];
        var tempResult = stringToSplit.split( ',' );
        console.log("tempResult:");
        console.log( tempResult );
        console.log(tempResult.length );

        if( stringToSplittempResult.length > 0 )
            result.push(stringToSplit) = tempResult;

        return result;

    }
}