option
Questions
ayuda
daypo
search.php

Vj_JS Test

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
Vj_JS Test

Description:
VJ JS test

Creation Date: 2026/01/05

Category: Others

Number of questions: 5

Rating:(0)
Share the Test:
Nuevo ComentarioNuevo Comentario
New Comment
NO RECORDS
Content:

Refer to the code below: Let foodMenu1 = ['pizza', 'burger', 'French fries']; Let finalMenu = foodMenu1; finalMenu.push('Garlic bread'); What is the value of foodMenu1 after the code executes?. [ 'Garlic bread']. [ 'pizza','Burger', 'French fires']. [ 'Garlic bread' , 'pizza','Burger', 'French fires' ]. [ 'pizza','Burger', 'French fires', 'Garlic bread'].

Which statement accurately describes an aspect of promises?. In a.then() function, returning results is not necessary since callbacks will catch the result of a previous promise. Arguments for the callback function passed to .then() are optional. .then() manipulates and returns the original promise. .then() cannot be added after a catch.

A developer is wondering whether to use, Promise.then or Promise.catch, especially when a Promise throws an error? Which two promises are rejected? Which 2 are correct?. Promise.reject(‘cool error here’).then(error => console.error(error));. Promise.reject(‘cool error here’).catch(error => console.error(error));. New Promise((resolve, reject) => (throw ‘cool error here’}).catch(error => console.error(error)) ;. New Promise(() => (throw ‘cool error here’}).then(null, error => console.error(error)));.

A developer at Universal Containers creates a new landing page based on HTML, CSS, and JavaScript TO ensure that visitors have a good experience, a script named personaliseContext needs to be executed when the webpage is fully loaded (HTML content and all related files ), in order to do some custom initialization. Which statement should be used to call personalizeWebsiteContent based on the above business requirement?. Document.addEventListener('''DOMContextLoaded' , personalizeWebsiteContext);. window.addEventListener('onload', personalizeWebsiteContext);. document.addEventListener(''onDOMContextLoaded', personalizeWebsiteContext);. window.addEventListener('load',personalizeWebsiteContext);.

Refer to the code below: Let textValue = '1984'; Which code assignment shows a correct way to convert this string to an integer?. let numberValue = Number(textValue);. Let numberValue = Integer(textValue);. Let numberValue = (Number)textValue;. Let numberValue = textValue.toInteger();.

Report abuse