v1
7/30/2021 by warriorfly84 -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
var string = 'Split this, but not this'
delete caserun single casemove downdrag and drop case


ready



var arr = string.split(' '),
    result = arr.slice(0,1);
result.push(arr.slice(1).join(' '));
delete caserun single casemove upmove downdrag and drop case


ready



var arr = string.split(' '),
    result = arr.splice(0,1);

result.push(arr.join(' '));
delete caserun single casemove updrag and drop case


ready



const split = string.split(' ', 1);
result = [split[0], string.substr(split[0].length + 1)];
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN