logo

Crowdly

Browser

Додати до Chrome

WEB202_Web Development 2_24/25_T2_11.CCP

Шукаєте відповіді та рішення тестів для WEB202_Web Development 2_24/25_T2_11.CCP? Перегляньте нашу велику колекцію перевірених відповідей для WEB202_Web Development 2_24/25_T2_11.CCP в moodle.ncst.edu.bh.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

What’s the issue with the following comment? 

// Add name to greeting

const greeting = "Hello " + name;

Переглянути це питання
Context:

Understanding the DOM tree structure.

Given this HTML:

<div id="parent">

<div class="child"></div>

<div class="child"></div>

</div>

Which statement is correct?

]]>
0%
0%
0%
0%
Переглянути це питання
Context:

Using map to transform an array.

What is the result of this code?

const nums = [1, 2, 3];

const doubled = nums.map(n => n * 2);

console.log(doubled);

]]>
0%
0%
0%
0%
Переглянути це питання
Context:

Using .filter method.

Given:

const nums = [1,2,3,4,5];

const evens = nums.filter(n => n % 2 === 0);

What does evens contain?

]]>
Переглянути це питання
Context:

Understanding reference behavior with objects.

What will be the output of the following code?

let animal = {type: 'dog'};

let pet = animal;

animal.type = 'cat';

console.log(pet.type);

]]>
Переглянути це питання
Context:

Array mutation with filter.

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?

0%
0%
0%
0%
Переглянути це питання
Context:

Repeating a string.

What does this print?

const str = "ha";

console.log(str.repeat(3));

]]>
0%
0%
0%
0%
Переглянути це питання
Which of the following function names is most appropriate?

Переглянути це питання
What is camelCase?

0%
0%
0%
0%
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.ncst.edu.bh?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome