This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(e){function t(n){if(i[n])return i[n].exports;var A=i[n]={i:n,l:!1,exports:{}};return e[n].call(A.exports,A,A.exports,t),A.l=!0,A.exports}var i={};t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var A in e)t.d(n,A,function(t){return e[t]}.bind(null,A));return n},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s="mdyV")}({"8Jek":function(e,t){var i;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function solution(fullMesssage, maxLength) { | |
const space = ' '; | |
const wordsArr = fullMesssage.split(space); | |
const isSomeWordOutOfBoundary = Boolean( | |
wordsArr.some(word => word.length > maxLength) | |
); | |
if (isSomeWordOutOfBoundary) { | |
return -1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pwd -> print working directory | |
ls -l | |
-> | |
ls - list | |
-l - long | |
-la - long + hidden files | |
Example Output: | |
-rw-r--r-- 1 cameronnokes staff 0 Feb 19 20:23 index.html | |
-> |