Looking for WEB202_Web Development 2_24/25_T2_11.CCP test answers and solutions? Browse our comprehensive collection of verified answers for WEB202_Web Development 2_24/25_T2_11.CCP at moodle.ncst.edu.bh.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Given:
const nums = [1,2,3,4,5];const evens = nums.filter(n => n % 2 === 0);What does evens contain?]]>
Given this HTML:
<div id="parent">
<div class="child"></div>
<div class="child"></div>
</div>
Which statement is correct?
]]>What is the result of this code?
const nums = [1, 2, 3];
const doubled = nums.map(n => n * 2);
console.log(doubled);
]]>What will be the output of the following code?
let animal = {type: 'dog'};
let pet = animal;
animal.type = 'cat';
console.log(pet.type);
]]>// Add name to greeting
const greeting = "Hello " + name;Given:
const arr = [5,10,15];arr.filter(x => x>3);What happens to arr?]]>
Context:
const arr = [1, 2, 3, 4, 5];
const odds = arr.filter(num => num % 2 !== 0);
console.log(odds);
What will odds contain?
What does this print?
const str = "ha";
console.log(str.repeat(3));
]]>