v1
1/14/2021 by hkotsubo -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
function comForSimples(...words) {
    var longest = "";
    for (var word of words) {
        if (word.length > longest.length) longest = word;
    }
    return longest;
}

function comSort(...args){
  return 'A maior palavra é: ' + args.sort(function(a, b){return b.length - a.length})[0]; 
}
delete caserun single casemove downdrag and drop case


ready



comForSimples("The", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog");
delete caserun single casemove updrag and drop case


ready



comSort("The", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog");
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