DEV Community

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

Collapse
 
nithish_13 profile image
Nithish Kumar

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 Wicaksono

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

Collapse
 
nithish_13 profile image
Nithish Kumar

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