Frame It
Warm-Up
Given a string of any length, write a function that "frames" it in a multi-dimensional array.
For example:
frameIt("pic");
//returns
[
[*,*,*,*,*],
[*,p,i,c,*],
[*,*,*,*,*]
]
Given a string of any length, write a function that "frames" it in a multi-dimensional array.
For example:
frameIt("pic");
//returns
[
[*,*,*,*,*],
[*,p,i,c,*],
[*,*,*,*,*]
]