Software Technical Assessment Test
Write a JavaScript function called generateFullPyramid(n) that takes a single integer parameter to generate a pyramid pattern as described below. e.g. generateFullPyramid(4), should render an outcome as below. 1 121 12321 1234321
Acceptance Criterias:
- Ensure the solution is clear, well-organized, and follows best practices in JavaScript coding.
- You are recommended to add in inline comment to explain your code logic.
- Error handling logic is value added.