v1
5/13/2020 by Lamik -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
let str= "1234567.00".repeat(100000); // 1M characters
delete caserun single casemove downdrag and drop case


ready



str.replace(/.$/, '');
delete caserun single casemove upmove downdrag and drop case


ready



str.match(/(.*).$/)[1];
delete caserun single casemove upmove downdrag and drop case


ready



str.substring(0, str.length - 1);
delete caserun single casemove upmove downdrag and drop case


ready



str.slice(0, -1); 
delete caserun single casemove upmove downdrag and drop case


ready



str.substr(0, str.length - 1);
delete caserun single casemove upmove downdrag and drop case


ready



let s= str.split("");
s.pop();
s.join("");
delete caserun single casemove updrag and drop case


ready



let s='';
for(let i=0; i<str.length-1; i++) s+=str[i];
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