DEV Community

loading...

Discussion on: 13 useful JavaScript array tips and tricks you should know

Collapse
nithish_13 profile image
Nithish

Hello everyone,, I want answer for this problem in JavaScript.
const a = 'abcdefghijklmnopqrstuvwxyz'
//Result
['abc','def','ghi',....]
Can someone explain!??
Thanks in Advance 🙂🙂

Collapse
flyingduck92 profile image
Sekti W

it looks like slicing the output into 3chars-of string

Collapse
nithish_13 profile image
Nithish

S,, finally I did that... ;)