This simple project comes up as a side result of my everyday coding practice. During solving one of Codewars's kata titled: The Clockwise Spiral I decided to code a visual presentation of a final algorithm.
Your objective is to complete a function createSpiral(N) that receives an integer N and returns an NxN two-dimensional array with numbers 1 through NxN represented as a clockwise spiral.