|
<SCRIPT> function testQuestion(question) { var correct = '<IMG SRC="correct.gif">'; var response = prompt(output, "0"); return (response == answer) ?
correct : incorrec; </SCRIPT> <BODY> <SCRIPT> var result = testQuestion("10 + 10"); document.write(result); </SCRIPT> |