Skip to content

Instantly share code, notes, and snippets.

View Maryna2019's full-sized avatar
🎯
Focusing

Maryna Maryna2019

🎯
Focusing
  • Kyiv, Ukraine
View GitHub Profile
@Maryna2019
Maryna2019 / solution kickstart
Last active November 28, 2019 16:44
solution kickstart
let allSMS = "SMS messages are really short",
maxLength = 12;
function solution(allSMS,maxLengthSMS) {
let words = allSMS.split(" "),
amountSMS = 1,
currentSMS = " ";
for (let i = 0; i < words.length; i++) {