اريييييييييييييييييد المساعده لوسمحتووو
Using JavaScript, write a web page that asks the user to give the solution of this equation: x+5=7. If the answer is correct, an alert window with the message “Correct Answer” should be pop up to the user. Otherwise, the message “Wrong Answer” with the correct answer, written in red, should be displayed in the browser.
وهدي محاولتي
<html dir="rtl">
<head><title> الجافا سكربت </title>
<script type ="text/javascript">
var pass_2="okman";
var pass_user;
pass_user = window.prompt(" ;("ENTER NUM"،"NUM
if (pass_2 ==pass_user )
{
document.write (" ; ( "NUM+
}
else
{
document.write (" ; (" Wrong Answer
}
document.write (" ; (" ANSWER
</script>
</head>
<body></body>
</html>
