Skip to content

Instantly share code, notes, and snippets.

View andanf-e's full-sized avatar
🦕

andrew fedorchenko andanf-e

🦕
View GitHub Profile
const solution = (message, length) => {
const words = message.split(' ');
const filteredMessages = [];
let flag = true;
for (let word of words) {
if (word.length > length) {
flag = false;
break;