jsdoc for problem-6.js