ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 111 - Certified JavaScript Developer I discussion

Report
Export

Refer to code below:

Let first = 'who';

Let second = 'what';

Try{

Try{

Throw new error('Sad trombone');

}catch (err){

First ='Why';

}finally {

Second ='when';

} catch (err) {

Second ='Where';

}

What are the values for first and second once the code executes ?

A.
First is Who and second is When
Answers
A.
First is Who and second is When
B.
First is why and second is where
Answers
B.
First is why and second is where
C.
First is who and second is where
Answers
C.
First is who and second is where
D.
First is why and second is when
Answers
D.
First is why and second is when
Suggested answer: D
asked 23/09/2024
Nasser Moore
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first