?Identify a true statement of array .find( callback [, thisArg ])method. ?It ret
ID: 3711700 • Letter: #
Question
?Identify a true statement of array.find(callback [, thisArg])method.
?It returns the index of the first element in the array that passes a test in the callback function.
?The appearance of any form element can be changed by modifying style sheets instead of the JavaScript code.
?The _____ method creates a new array by passing the original array items to the callback function, which returns the equivalent value of the array items.
?Increasing the value of the length property adds more items to an array, but the items have null values until they are defined.
?The value of the length property can be reduced without removing items from an array.
?Which of the following determines the current size of an array?
?Identify a compare function that sorts numeric values in descending order.
return a - b;
}
return b;
}
?
return b - a;
}
return a;
}
?Identify a true statement of array.some(callback [, thisArg])method.
?The _____ statement stops processing the commands in the current iteration of the loop and proceeds to the next iteration instead of stopping the program loop altogether.
?Identify the general structure of a for loop.
{
commands
}
{
commands
}
{
commands
}
{
commands
}
?Identify the structure of an if statement
commands
}
}(condition)
commands
}
}
(condition){
commands
?A _____, which employs the first-in-first-out (FIFO) principle in which the first item added to the data list is the first removed, is similar to a stack.
?The getDate() method in a calendar app returns an integer ranging from 0 (Sunday) to 6 (Saturday).
?Identify the syntax of the statement label.
?Statement labels are used to identify statements in JavaScript code so that the statements can be referenced elsewhere in a program.
What is the output of the following code?
for (var i = 0; i <= 360; i+=60)
?Identify the expression in which the initial value of the day variable will be set to match the first day of the calendar month.
?A(n) _____ is a collection of values organized under a single name.
What is the output of the following code?
var sum = 0;
var x = [1, 3, 7, 11];
?
x.forEach(sumArray);
?
function sumArray(value) {
sum += value;
}
?
?JavaScript supports logical operators that connect several expressions.
a ?It tests whether the condition returned by the callback function holds for at least one item in array.Explanation / Answer
1)Yes java script supports logical operators. Logical operators are typically used with Boolean (logical) values; when they are, they return a Boolean value. However, the && and || operators actually return the value of one of the specified operands, so if these operators are used with non-Boolean values, they may return a non-Boolean value.
2)Array is a collection of values organized under a single name.
3)?var day = new Day(calDate.getDD(), calDate.getMM(),calDate.getYY(),1); is used to assign date to the day variable.
4)The getDate() method in a calendar app returns an integer ranging from 0 (Sunday) to 6 (Saturday) ": No it returs the day integer ie from 1 to 31.
5)Statement labels are used to identify statements in JavaScript code so that the statements can be referenced elsewhere in a program. this is True.
6) Statement labels are used to identify statements in JavaScript code so that the statements can be referenced elsewhere in a program. is true see the example fro refernce.
7)the syntax of the statement label is ?label: statements.
8)
What is the output of the following code?
for (var i = 0; i <= 360; i+=60)
?i = 0, 60, 120, 180, 240, 360 it is a simple postincrement pprogram.
9)
Identify the general structure of a for loop.
{
commands
}
10)
?Identify the structure of an if statement
commands
}
11)?The _____ statement stops processing the commands in the current iteration of the loop and proceeds to the next iteration instead of stopping the program loop altogether. it is continue.
12)Which of the following determines the current size of an array?
It is array.length().
a?i = 0, 60, 120, 180, 240, 360 it is a simple postincrement pprogram.
9)
Identify the general structure of a for loop.
a for (start;continue;update){
commands
}
10)
?Identify the structure of an if statement
a if (condition) {commands
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.