I'm trying to write a function which will return a rectangle of *'s. It keeps throwing up an error whenever I try to use \n. I assume i'm using it incorrectly but don't know how - can anyone help?
function makeRectangle(m, n) {
return '*'.repeat(m) \n.repeat(n);
}