apsu CSCI 3300 midterm
+= - ANS-it provides everything from the right side to the left side
do-whilst loop - ANS-post test
While the situation is actual, iterate. Do
... This aspect
at the same time as (the condition); ANS-pretest - for loop 1) initialize
2) check
3) the main content material 4) alter
2)take a look at
versus the at the same time as loop when to use: - ANS-for loop: while you understand the
precise number of times you want to loop, or whilst you want a counter
at the same time as loop: used while you are unsure of the wide variety of instances you need
to loop ANS-assessments the equality of variables the usage of javascript ==, but it does not
take a look at for distinctive varieties of variables. Javascript === - ANS-compares to peer if
variables are the same. The variables ought to be equal in both price and kind.
JavaScript- assessment operators - ANS-<, >, <=, >=, ===, ==, ! =, ! ==
javascript- brief circuiting - ANS-the evaluation of an expression from left to propersituation is
met and the rest of the situations might not affect the already evaluated end result, the
expression will short-circuit and return that end result (price).
Javascript- solve this:
permit a = three;
let b = "three";
console.Log(a==b);
console.Log(a===b);
console.Log(a! ==b); - ANS-proper due to the fact javascript robotically parses strings in ==
false because the kind of variable is not the same
because it suggests that the variables aren't of the equal kind javascript- 3 things needed for a
while loop - ANS-initialize the manage variable
test the situation
adjust the manipulate
javascript- What are the special styles of loops? - ANS-even as, do-even as, for
javascript- what's the name and motive of the first loop? - ANS-The pretest loop is used to test
the program
javascript: what takes place if the person presses end? Const HELLO equals "hi," const "quit" =
const permit choice equal "HELLO"; whilst(alternative ! = QUIT)
choice = spark off("hiya. Type 'end' to stop.") ;
if(choice ==HELLO)
alert("Hi! Hey!") ;
To quit, kind "give up" accompanied via alert("good-bye"); ANS-whats up. Goodbye
+= - ANS-it provides everything from the right side to the left side
do-whilst loop - ANS-post test
While the situation is actual, iterate. Do
... This aspect
at the same time as (the condition); ANS-pretest - for loop 1) initialize
2) check
3) the main content material 4) alter
2)take a look at
versus the at the same time as loop when to use: - ANS-for loop: while you understand the
precise number of times you want to loop, or whilst you want a counter
at the same time as loop: used while you are unsure of the wide variety of instances you need
to loop ANS-assessments the equality of variables the usage of javascript ==, but it does not
take a look at for distinctive varieties of variables. Javascript === - ANS-compares to peer if
variables are the same. The variables ought to be equal in both price and kind.
JavaScript- assessment operators - ANS-<, >, <=, >=, ===, ==, ! =, ! ==
javascript- brief circuiting - ANS-the evaluation of an expression from left to propersituation is
met and the rest of the situations might not affect the already evaluated end result, the
expression will short-circuit and return that end result (price).
Javascript- solve this:
permit a = three;
let b = "three";
console.Log(a==b);
console.Log(a===b);
console.Log(a! ==b); - ANS-proper due to the fact javascript robotically parses strings in ==
false because the kind of variable is not the same
because it suggests that the variables aren't of the equal kind javascript- 3 things needed for a
while loop - ANS-initialize the manage variable
test the situation
adjust the manipulate
javascript- What are the special styles of loops? - ANS-even as, do-even as, for
javascript- what's the name and motive of the first loop? - ANS-The pretest loop is used to test
the program
javascript: what takes place if the person presses end? Const HELLO equals "hi," const "quit" =
const permit choice equal "HELLO"; whilst(alternative ! = QUIT)
choice = spark off("hiya. Type 'end' to stop.") ;
if(choice ==HELLO)
alert("Hi! Hey!") ;
To quit, kind "give up" accompanied via alert("good-bye"); ANS-whats up. Goodbye