Find the error in the code.
The answer should be: 15
Difficulty: Average😐
The answer should be: 15
Difficulty: Average😐
function sumArray(arr) {
let sum = 0;
arr.forEach(function(num) {
sum =+ num;
});
return sum;
}
let numbers = [1, 2, 3, 4, 5];
console.log(sumArray(numbers));What is a correct syntax to output "Hello World" in Python?
Anonymous Quiz
5%
echo("Hello World");
90%
print("Hello World")
4%
p("Hello World")
1%
echo "Hello World"
What is the correct HTML for adding a background color?
Anonymous Quiz
11%
<body bg="yellow">
72%
<body style="background-color:yellow;">
11%
<background>yellow</background>
7%
<body bg-color="yellow">
What will this code output?
Difficulty: Average🤨
Difficulty: Average🤨
const obj1 = { name: 'Alice' };
const obj2 = { name: 'Alice' };
if (obj1 === obj2) {
console.log("true");
} else {
console.log("false");
}Which CSS rule can be used to change the cursor when hovering over an element?
Anonymous Quiz
19%
hover-cursor: hand;
21%
hover: cursor;
46%
cursor: pointer;
14%
pointer: hover;