School Essay Assignment

Select your class grade and enter an essay title to generate a ChatGPT prompt:



 
function generateEssayPrompt() { const grade = document.getElementById(“grade”).value; const title = document.getElementById(“title”).value; const prompt = `Write a ${grade}th grade level essay on “${title}”`; const response = `Your essay prompt is: “${prompt}”.`; document.getElementById(“prompt”).innerHTML = response; }
Exit mobile version