U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce JS-Dev-101 Exam - Topic 7 Question 1 Discussion

Which actions can be done using the JavaScript browser console?
A) Run code that's not related to the page and B) View and change the DOM of the page and D) Change the DOM and the JavaScript code of the page
C) Display a report showing the performance of a page
E) View and change security cookies

Salesforce JS-Dev-101 Exam - Topic 7 Question 1 Discussion

Actual exam question for Salesforce's JS-Dev-101 exam
Question #: 1
Topic #: 7
[All JS-Dev-101 Questions]

Which actions can be done using the JavaScript browser console?

Show Suggested Answer Hide Answer
Suggested Answer: A, B, D

A: Yes. You can run arbitrary JS in the console (even if it doesn't touch the page).

B: Yes. You can inspect and modify DOM nodes via JS.

C: Performance reports are mainly in the Performance tab, not the console.

D: Yes. You can alter the DOM and redefine or override JS functions/variables at runtime.

E: You can read and set document.cookie, but HttpOnly ''security cookies'' cannot be read or changed from JS.

________________________________________


Contribute your Thoughts:

0/2000 characters
Katina
1 month ago
I thought you couldn't run unrelated code in the console?
upvoted 0 times
...
Mauricio
2 months ago
A and D are also possible, right?
upvoted 0 times
...
Martin
2 months ago
You can definitely view and change the DOM with the console!
upvoted 0 times
...
Lemuel
2 months ago
Changing security cookies? That's a bit risky, isn't it?
upvoted 0 times
...
Vanna
2 months ago
Performance reports are a breeze to check in the console!
upvoted 0 times
...
Desirae
2 months ago
Wait, can you really run code unrelated to the page? Sounds sketchy.
upvoted 0 times
...
Slyvia
2 months ago
A and D are both possible, for sure.
upvoted 0 times
...
Marleen
3 months ago
You can definitely change the DOM with the console!
upvoted 0 times
...
Oren
3 months ago
I think options B and D are correct since we can manipulate the DOM and maybe even the JavaScript code, but I'm a bit confused about option A.
upvoted 0 times
...
Carolynn
3 months ago
I feel like the console can show performance reports, but I can't recall if it can change security cookies.
upvoted 0 times
...
Refugia
3 months ago
I remember practicing with similar questions, and I believe we can run code that's related to the page, but not sure about unrelated code.
upvoted 0 times
...
Sol
3 months ago
I think we can definitely view and change the DOM using the console, but I'm not sure about changing the JavaScript code directly.
upvoted 0 times
...

Save Cancel