---
title: "Discussion on \"CodeWars (6 kyu) Consecutive strings - Javascript\" | Hashnode"
description: "Discussion on \"CodeWars (6 kyu) Consecutive strings - Javascript\". Description:\nYou are given an array(list) strarr of strings and an integer k. Your task is to return the first longest string consisting of k consecutive strings taken in the array.\nExamples:\nstrarr = [\"tree\", \"foling\", \"trashy\", \"blue\", \"abcdef\", \"u..."
url: "https://hashnode.com/posts/codewars-6-kyu-consecutive-strings-javascript/64431a4967ae2844b4135638"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [CodeWars (6 kyu) Consecutive strings - Javascript](https://namnguyendev.hashnode.dev/codewars-6-kyu-consecutive-strings-javascript?utm_source=hashnode&utm_medium=feed)

Description: You are given an array(list) strarr of strings and an integer k. Your task is to return the first longest string consisting of k consecutive strings taken in the array. Examples: strarr = \["tree", "foling", "trashy", "blue", "abcdef", "u...

Apr 21, 2023 · 3 min read · namnguyendev.hashnode.dev  
Read the article

-   [#codewars](https://hashnode.com/tag/codewars)
-   [#6kyu](https://hashnode.com/tag/6kyu)
-   [#kata](https://hashnode.com/tag/kata)

## Written by

[Nam Nguyen](https://hashnode.com/@NamNguyenDev)

@NamNguyenDev · Spring, TX

  
[View profile](https://hashnode.com/@NamNguyenDev)

Software Engineer @ 100Devs

A passionate software engineer providing elegant, innovative, and accessible solutions. When I’m not click-clacking away at my keyboard, you’ll probably find me lost in a book, trying a new recipe/restaurant, or having a blast with my beautiful wife and precocious daughter. I have 10+ years of IT experience and look forward to discussing ways we can join hands for our next adventure!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
