Answer:
function countEvens(list) {
// IMPLEMENT THIS FUNCTION!
var even = [];
for(var i = 0; i < list.length; i++){
if (list[i] % 2 == 0){
even.push(list[i]);
}
}
return console.log(even)
}
var list = [ 17, 8, 9, 5, 20 ];
var count = countEvens(list);
Explanation:
The programming language used is JavaScript.
An even variable is initialized, to hold the even variables within list.
A FOR loop loop iterates through all the elements in the list, an IF statement is used to check using the modulo division to check if the elements in the list are even.
The even elements are appended to the even list using .push() method.
Finally, the function returns the even list and outputs the list to the log using console.log(even)
.
A list is created and the function is called.
Answer:
Query:
insert into Categories (category_name) values ('Brass Code');
Explanation:
- The query is a medium through which a user of the database can communicate with the database or tables or any particular data. It means that when a user wants to access the database or tables or any data then there is a medium of query which is also known as SQL query.
- The query can help to make the database(which is a collection of tables), make the table in the database, add the data, modify the data or delete the data.
- For add the data there is a insert query which syntax is as follows: insert into table_name (column_1_name,column_2_name,....,column_n_name) values (column_1_values,column_2_values,....,column_n_values);
- There is only one column value in the question which a user needs to add so that can be done by the help of a statement that is defined on the answer part.
Answer:
40
Explanation:
Given that:
A neural network with 11 input variables possess;
one hidden layer with three hidden units; &
one output variable
For every input, a variable must go to every node.
Thus, we can calculate the weights of weight with respect to connections to input and hidden layer by using the formula:
= ( inputs + bias) × numbers of nodes
= (11 + 1 ) × 3
= 12 × 3
= 36 weights
Also, For one hidden layer (with 3 nodes) and one output
The entry result for every hidden node will go directly to the output
These results will have weights associated with them before computed in the output node.
Thus; using the formula
= (numbers of nodes + bais) output, we get;
= ( 3+ 1 ) × 1
= 4 weights
weights with respect to input and hidden layer total = 36
weights with respect to hidden and output layer total = 4
Finally, the sum of both weights is = 36 + 4
= 40
Answer:
increase your browser security settings
Answer:
Constant variable
Explanation:
Constant variable is a data item whose value cannot change