I try to build a function that will frame me a string with asterisks, using only JS. How can I do it?
function frame('Good Morning')
should get >>>
****************
* Good Morning *
****************
Edit after having to see some answers - the main problem was to break the line of asterisks so it will look as in the example, and not just long lines of asterisks.