Note that there are some explanatory texts on larger screens.

plurals
  1. POI'm pretty sure I'm suppose this statement
    primarykey
    data
    text
    <p>OK, I'm kinda stuck on this one. I'm looking in my book. </p> <p>I'm thinking I'm supposed to use the if or the else statement with this. When I try to validate it is coming up with 3 errors. Can someone point out hints to what I'm missing? </p> <p>Thank you. I'm not this far in javascript yet.</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;&lt;/title&gt; &lt;link rel="stylesheet" href="js_styles.css" type="text/css" /&gt; &lt;script type="text/javascript"&gt; //&lt;![CDATA[ &lt;!--HIDE FROM INCOMPATIBLE BROWERS function checkGrade(grade) { switch(grade) { case "A": document.write("Your grade is excellent."); break; case "B": document.write("Your grade is good."); break; case "C": document.write("Your grade is fair."); break; case"D": document.write("You are barely passing."); break; case"F": document.write("you failed."); break; defult: document.write("You did not enter a valid letter grade.") break; } } //STOP HIDING INCOMPATIBLE BROWERS--&gt; //]]&gt; &lt;/script&gt; &lt;/head&gt; &lt;body &lt;form name ="gradeForm" "action" =""&gt; &lt;input type="text" name="grade" /&gt; &lt;input type="button" value="CheckGrade" onclick="checkGrade(document.gradeForm.grade.value);" /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload