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 5 Question 80 Discussion

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

A developer has the function, shown below, that is called when a page loads.

function onload() {

console.log(''Page has loaded!'');

}

Where can the developer see the log statement after loading the page in the browser?

Show Suggested Answer Hide Answer
Suggested Answer: B, D

Contribute your Thoughts:

Delisa
2 months ago
I bet the developer was like, 'Hmm, let me try logging to the terminal just for fun.' Not the best idea.
upvoted 0 times
Malcom
26 days ago
D: Definitely not the best idea, it wouldn't even work there.
upvoted 0 times
...
Malcolm
1 months ago
C: A) Terminal running the web server would be a strange choice.
upvoted 0 times
...
Sherita
1 months ago
B: Yeah, that's where console.log statements show up.
upvoted 0 times
...
Erasmo
1 months ago
C: Definitely not the terminal, that would be confusing.
upvoted 0 times
...
Charlene
1 months ago
B: Yeah, that's where console.log statements show up!
upvoted 0 times
...
Charisse
1 months ago
A: C) Browser JavaScript console
upvoted 0 times
...
Christoper
1 months ago
A: C) Browser JavaScript console
upvoted 0 times
...
...
Lashaunda
2 months ago
Haha, D) On the webpage? I wish, that would be way too easy. JavaScript console is the way to go.
upvoted 0 times
...
Billye
2 months ago
A) Terminal running the web server? Really? Who looks there for a simple console.log()?
upvoted 0 times
...
Solange
2 months ago
I always forget where to look for console logs. Thanks for the reminder!
upvoted 0 times
...
Ricarda
2 months ago
C) Browser JavaScript console is the correct answer. That's where you'd see the log statement printed.
upvoted 0 times
Luisa
1 months ago
C) Browser JavaScript console is the correct answer. That's where you'd see the log statement printed.
upvoted 0 times
...
Clay
1 months ago
A) Terminal running the web server.
upvoted 0 times
...
...
Tran
2 months ago
I'm not sure, but I think it's C) Browser JavaScript console because that's where console.log statements are usually displayed.
upvoted 0 times
...
Anastacia
2 months ago
I agree with Martina, the log statement can be seen in the browser JavaScript console.
upvoted 0 times
...
Martina
2 months ago
I think the answer is C) Browser JavaScript console.
upvoted 0 times
...

Save Cancel