Print out N by N Spiral Matrix in javascript
This code is well written;

Comments


You have no comments whatsoever, fortunately the code reads well


JSHint.com


Your code passes all checks, well done