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 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
Paris
3 days ago
I like C. Performance reports help optimize the page.
upvoted 0 times
...
Rosalyn
8 days ago
A is interesting too. Running unrelated code can be useful sometimes.
upvoted 0 times
...
Ozell
13 days ago
I think B is a solid choice. You can definitely view and change the DOM.
upvoted 0 times
...
Anastacia
18 days ago
D covers both DOM and JS changes. That's powerful!
upvoted 0 times
...
Emerson
23 days ago
C is important for performance checks. We need that info!
upvoted 0 times
...
Vernice
29 days ago
A is interesting too. Running unrelated code can be useful.
upvoted 0 times
...
Justine
1 month ago
I think B is a solid choice. Changing the DOM is key.
upvoted 0 times
...
Angella
1 month ago
Wait, can you really change security cookies? That seems risky!
upvoted 0 times
...
Jillian
1 month ago
Totally agree, B and C are spot on!
upvoted 0 times
...
Eloisa
2 months ago
I thought you could only change the DOM, not the JS code?
upvoted 0 times
...
Yuonne
2 months ago
A) isn't possible, right?
upvoted 0 times
...
Leonida
2 months ago
You can definitely view and change the DOM!
upvoted 0 times
...
Salena
2 months ago
Wait, can you really change security cookies? That seems risky!
upvoted 0 times
...
Keneth
2 months ago
Performance reports are super useful, so C is a big yes!
upvoted 0 times
...
Katina
4 months ago
I thought you couldn't run unrelated code in the console?
upvoted 0 times
...
Mauricio
4 months ago
A and D are also possible, right?
upvoted 0 times
...
Martin
4 months ago
You can definitely view and change the DOM with the console!
upvoted 0 times
...
Lemuel
4 months ago
Changing security cookies? That's a bit risky, isn't it?
upvoted 0 times
...
Vanna
5 months ago
Performance reports are a breeze to check in the console!
upvoted 0 times
...
Desirae
5 months ago
Wait, can you really run code unrelated to the page? Sounds sketchy.
upvoted 0 times
...
Slyvia
5 months ago
A and D are both possible, for sure.
upvoted 0 times
...
Marleen
5 months ago
You can definitely change the DOM with the console!
upvoted 0 times
...
Oren
5 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
5 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
6 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
6 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