Language: JavaScript
Answer:
let num = [10,20,30];
average(num);
function average(num) {
let sum = 0;
for(let i in num) {
sum += num[i];
}
return console.log(sum/num.length);
}
Answer:
True
Explanation:
There are many formatting options from color, size, and many more.
Hope this helps!
Answer:
B) nested if...else
Explanation:
In Computer programming, there are four (4) main types of statements used in the decision-making process and these are;
I. If statement.
II. If....else statement.
III. Else.....if statement.
IV. Nested if...else statement.
The nested if...else statement allows you to check for multiple test expressions and execute different codes for more than two conditions. It uses the other three (3) statements in its decision-making process.
However, only the first test expression would be executed when it is true and then the program is terminated. Otherwise, the program would continue to run until it gets to the breaking point (else statement) and then terminates.
Could you by any chance help me with my business work?! Please go to my profile and go to the questions that have the subject business!