0% found this document useful (0 votes)
38 views

SF Js Certification

The document contains questions and answers about JavaScript concepts like using the browser console, importing modules, class inheritance, and debugging Node.js servers. It provides examples of code and asks which output or solution is correct.

Uploaded by

vagayi7536
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

SF Js Certification

The document contains questions and answers about JavaScript concepts like using the browser console, importing modules, class inheritance, and debugging Node.js servers. It provides examples of code and asks which output or solution is correct.

Uploaded by

vagayi7536
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

22 of 63. Which two actions can be done using the JavaScript browser console?

Choose 2 answers

A View the secunty cookies.


B. Display a report showing the performance of a page.
C. Change the DOM and the JavaScript code of the page.
D. Run code that's not related to the page.

52 of 63. A developer wants to use a module called Date PrettyPrint. This module exports one
default function called printDate().
How can a developer import and use the printDate() function?

A. import DatePrettyPrint() from /path/DateFrettyPrint.js"; printDate():


B. import DateFrettyPrint from /path/DatePrettyPrint.js'; DatePrettyPrint.printDate();
C. import printDate from /path/DatePrettyPrint.ja's printDate()
D.O import printDate from /path/DatePrettyPrint.js"
DatePrettyPrint.printDate(

01 class Student (
02 constructor (name) (
this.name namez
06 takeTeat () (
07 console.log("$(this.name) got 70% on test.");
}
}
11 class BetterStudent extends Student (
12 constructor (name) (
13 super (name);
14 this.name 'Better student name:
16 takeTest () (
17 console.log('$(this.name) got 100% on test.");
21 let student new BetterStudent('Jackie');
22 student.takeTest();

What is the console output?

A Better student Jackie got 70% on test.


B. Jackie gat 70% on test.
CO Better student Jackie got 100% on teat.
D. Uncaught ReferenceError

54 of 63. Refer to the following object.


01 const dog (
02 firstName: 'Beau',
03 lastName: 'Boo',
04 get fullName () (
05 return this.firstName + ' ' + this.lastName;
How can a developer access the fullName property for dog?
AO deg.fullName
B. dog.fullName ()
CO dog.get.fullName
D. dog.function.fullName()

33 of 63. A developer needs to debug a Node.js web server because a runtime error keeps
occurring at one of the endpoints.

The developer wants to test the endpoint on a local machine and make the request against a local
server to look at the behavior. In the source code, the server.js file will start the server. The
developer wants to debug the Node.js server only using the terminal.

Which command can the developer use to open the CLI debugger in their current terminal
window?

A. node inspect server.ja


B. node server.ja inspect
CO node.j
D. node start inspect server.ja

You might also like