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
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

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Back to top









