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
5 days 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
...
Lashaunda
6 days 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
9 days ago
A) Terminal running the web server? Really? Who looks there for a simple console.log()?
upvoted 0 times
...
Solange
10 days ago
I always forget where to look for console logs. Thanks for the reminder!
upvoted 0 times
...
Ricarda
12 days ago
C) Browser JavaScript console is the correct answer. That's where you'd see the log statement printed.
upvoted 0 times
...
Tran
17 days 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
23 days ago
I agree with Martina, the log statement can be seen in the browser JavaScript console.
upvoted 0 times
...
Martina
25 days ago
I think the answer is C) Browser JavaScript console.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77