I was wanting help understanding what part is a statement and what part is the Expression:
Example: 1
function checker() {
var user_name="Billy Moore"
var user_password="billy moore"
var entered_user_name=prompt("Please Enter User Name: ", " ");
var entered_user_password=prompt("Please Enter User Password: " , " ");
if ((entered_user_name == user_name) && (entered_user_password ==
user_password))
{
document.write("Your Officially Logged In!");
}
else
{
document.write("Your User Name and /or password is incorrect");
}
}
.......................................................
I was wondering what parts are the Expression and Statements.
......................................................
If you have anyother examples to my question that are better examples Please Do reply.
What i'm looking for is a diagram of what is what.
Thanks