Answer:
Answered below
Explanation:
Some variable naming conventions include;
1) Variable should begin with either a letter or an underscore.
2) Variables having multiple words should have the first letter of every word after the first word, capitalized. This is the camelCase style.
3) variables should not be named after any of the inbuilt keywords except on special operations to override the original function of such keyword.
4) variable names are case-sensitive.
The importance of following these conventions is to maintain readability and consistency of code. Failure to follow these conventions may lead to chaotic codes, bugs and inefficient performance.
Verify data, something like this
var username = document.getElementById("input1").value
var password = document.getElementById("input2").value
// this is the validation:
if ( username == "anime" && password == "Anime132" ){
alert("Correct login data");
} else {
alert("Wrong login data");
}
I would say A, I had originally thought D, but you're able to drop out.
This doesn't really tell me what I'm supposed to awnser
Answer:
The outcome would be "yes".
Explenation:
numA = 2
numB = 3
if numA == 2 or numB == 2:
print("yes")
elif numA == 2 and numB == 3:
print("no")
<u>numA = 2</u>
This line of code declares the variable numA and gives it a value of 2
<u>numB = 3</u>
This line of code declares the variable numB and gives it a value of 3
<u>if numA == 2 or numB == 2:</u>
This part activate the next line of code only if the statement (numA == 2 or numB == 2<u>)</u> is True
<u>print("yes")</u>
This code prints out "yes" in the terminal.
<u>elif numA == 2 and numB == 3:</u>
This line of code is similar to the ifstatement above. The code below activates only if the statement (numA == 2 and numB == 3) is True and the previous ifstatement wasn't True.
<u>print("no")</u>
This code prints out "no" in the terminal.