Interview Coach

AI Interview Coach

Practice your interview skills and get instant, personalized feedback.

Select a Question

Select a question from the left to begin practicing.

Manage Question Bank

Date: ${new Date().toLocaleDateString()}

`; practiceSession.forEach((item, index) => { reportHtml += `

Question ${index + 1}: ${item.question}

Your Answer:

${item.answer.replace(/\n/g, '
')}
`; }); pdfOutput.innerHTML = reportHtml; html2canvas(pdfOutput, { scale: 2 }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'portrait', unit: 'pt', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = pdf.internal.pageSize.getHeight(); const canvasWidth = canvas.width; const canvasHeight = canvas.height; const ratio = canvasWidth / canvasHeight >= pdfWidth / pdfHeight ? pdfWidth / canvasWidth : pdfHeight / canvasHeight; const imgWidth = canvasWidth * ratio; const imgHeight = canvasHeight * ratio; pdf.addImage(imgData, 'PNG', 0, 0, imgWidth, imgHeight); pdf.save('Interview-Practice-Report.pdf'); pdfOutput.innerHTML = ''; // Clean up after }); } init(); });
Scroll to Top