Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx
43
var assert = require('assert');
function textJustification(words, maxWidth) {
// fill in this method
return '';
}
try {
const wordsLonger = [
'algodaily',
'is',
'awesome',
'and',
'you',
'can',
'text',
'justify',
'all',
'types',
'of',
'text',
'and',
'words',
];
const result =
'algodaily \n' +
'is awesome\n' +
OUTPUT
Results will appear here.