let a = 10;
do {
console.log(--a);
} while (a > 3);
Which statement can replace the do ... while from the example above?
let x = 10;
function test() {
let x = 20;
}
test();
console.log(x);
What will be displayed in the console as a result of its execution?
(Select two correct answers)
function fn(a) {
console.log('test');
a--;
if(a>2) fn(a);
}
fn(6);
How many times will test appear on the screen?
let point = {x: 10, y: 20};
for (let f in point) {
console.log(point[f]);
}
What will appear on the console as a result of its execution?
© Copyrights DumpsEngine 2026. All Rights Reserved
We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsEngine.
