let str = "Split this string"; //1. Case Limit must be positive integer console.log(str.split(' ', 3)); //Result: //(3) ['Split', 'this', 'string'] //2. Case If limit is equal 0 console.log(str.split(' ', 0)); //Result: //[] //3. Case More items than limit console.log(str.split(' ', 1)); //Result: //['Split'] //4. Case when array contains less than the limit console.log(str.split(' ', 9)); //Result: //(3) ['Split', 'this', 'string']