Uncaught TypeError: Cannot read property 'toLowerCase' of null
<p>This prompt was working perfectly well up until I updated some other javascript. I don't know how I messed it up. This function is declared in the body tag to run 'onload'.</p>

<pre><code>function funcPrompt() {
   var answer = prompt("Are you a photographer?", "Yes/No");
   answer = answer.toLowerCase();

if (answer == "yes") {
    alert('Excellent! See our links above and below to see more work and find contact info!');
}
else if(answer == "no") {
    alert('That is okay! See our links above and below to learn more!');
}
else if(answer == null || answer == "") {
    alert('Please enter an answer.');
    funcPrompt();
}
else {
    alert('Sorry, that answer is not an option');
    funcPrompt();
}
}
</code></pre>

<p>Now suddenly I'm getting this error and the prompt won't appear.</p>