Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Javascript Developer I Topic 7 Question 103 Discussion

Actual exam question for Salesforce's Javascript Developer I exam
Question #: 103
Topic #: 7
[All Javascript Developer I Questions]

A developer is asked to fix some bugs reported by users. To do that, the developer adds

abreakpoint for debugging.

Function Car (maxSpeed, color){

This.maxspeed =masSpeed;

This.color = color;

Let carSpeed = document.getElementById(' CarSpeed');

Debugger;

Let fourWheels =new Car (carSpeed.value, 'red');

When the code execution stops at the breakpoint on line 06, which two types of information are

available in the browser console ?

Choose 2 answers:

Show Suggested Answer Hide Answer
Suggested Answer: C, D

Contribute your Thoughts:

Geoffrey
8 days ago
Haha, looks like the developer forgot to initialize the maxSpeed variable properly. That's a classic bug right there!
upvoted 0 times
...
Kenneth
13 days ago
I agree with Olen. The debugger statement should allow us to inspect the state of the variables and the DOM element at that point in the code execution.
upvoted 0 times
...
Kris
16 days ago
I think the correct answers are A and C.
upvoted 0 times
...
Olen
27 days ago
The correct answers are A) The values of the carSpeed and fourWheels variables, and C) The style, event listeners and other attributes applied to the carSpeed DOM element. I can see those being available in the console.
upvoted 0 times
Josphine
3 days ago
Good to know. Those are important details to check while debugging.
upvoted 0 times
...
Tennie
13 days ago
Yes, that's correct. The style and attributes of carSpeed DOM element are also visible.
upvoted 0 times
...
Clorinda
20 days ago
I think the values of carSpeed and fourWheels variables are available in the console.
upvoted 0 times
...
...

Save Cancel