Analyze the following code:
function fn(a) {
console.log('test');
a--;
if(a>2) fn(a);
}
fn(6);
How many times will test appear on the screen?
The result of the operation false || "false" will be:
A recursive function is a function that:
We have initialized the name variable with the value "Alice"
then we try to write the number 100 into it.
let name = "Alice";
name = 100;
Analyze the following code:
let id = "100";
{
let id = 200;
id = id + 1;
console.log(id)
}
What will appear in the console as a result?
© Copyrights FreePDFQuestions 2026. All Rights Reserved
We use cookies to ensure that we give you the best experience on our website (FreePDFQuestions). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreePDFQuestions.