

IMPORTANT NOTICE
Feedback
We have developed quality product and state-of-art service to ensure our customers interest. If you have any suggestions, please feel free to contact us at feedback@dumpscafe.com
Support
If you have any questions about our product, please provide the following items:
exam code
screenshot of the question
login id/email
please contact us at and our technical experts will provide support within 24 hours.



Copyright
support@dumpscafe.com
The product of each order has its own encryption code, so you should use it independently. Any unauthorized changes will inflict legal punishment. We reserve the right of final explanation for this statement.

Question #:1
Given the following code, what is the value of x?
let x = ‘15' + (10 * 2); 35 50 1520 3020
Answer: C
Question #:2
A developer creates a generic function to log custom messages in the console. To do this, the function below is implemented.
01 function logStatus(status){
02 console./*Answer goes here*/{‘Item status is: %s’, status};
03 }
Which three console logging methods allow the use of string substitution in line 02?
Assert Log Message Info Error

Answer: B D E
Question #:3
Which three options show valid methods for creating a fat arrow function?
Choose 3 answers
x => ( console.log(‘ executed ’) ; )
[ ] => ( console.log(‘ executed ’) ;)
( ) => ( console.log(‘ executed ’) ;)
X,y,z => ( console.log(‘ executed ’) ;)
(x,y,z) => ( console.log(‘ executed ’) ;)
Answer: A E
Question #:4
Refer to the code below:
Let str = ‘javascript’;
Str[0] = ‘J’; Str[4] = ’S’;

After changing the string index values, the value of str is ‘javascript’. What is the reason for this value:
Non-primitive values are mutable.
Non-primitive values are immutable.
Primitive values are mutable.
Primitive values are immutable.
Answer: D
Question #:5
Refer to the code below: new Promise((resolve, reject) => { const fraction = Math.random(); if( fraction >0.5) reject("fraction > 0.5, " + fraction); resolve(fraction); }) .then(() =>console.log("resolved"))
.catch((error) => console.error(error))
.finally(() => console.log(" when am I called?"));

When does Promise.finally on line 08 get called?
When rejected
When resolved and settled
When resolved
When resolved or rejected
Answer: D
Question #:6
A developer is setting up a Node,js server and is creating a script at the root of the source code, index,js, that will start the server when executed. The developer declares a variable that needs the folder location that the code executes from.
Which global variable can be used in the script?
window.location
_filename
_dirname

this.path
Answer: B
Question #:7
Refer to the following array:
Let arr1 = [ 1, 2, 3, 4, 5 ];
Which two lines of code result in a second array, arr2 being created such that arr2 is not a reference to arr1?

Let arr2 = arr1.slice(0, 5);
Let arr2 = Array.from(arr1);
Let arr2 = arr1;
D.
Let arr2 = arr1.sort();
Answer: A B
Question #:8
Refer to the code snippet:
Function getAvailabilityMessage(item) {
If (getAvailability(item)){

Var msg =”Username available”; } Return msg; }
A developer writes this code to return a message to user attempting to register a new username. If the username is available, variable.
What is the return value of msg hen getAvailabilityMessage (“newUserName” ) is executed and getAvailability(“newUserName”) returns false?
“Username available”
“newUserName”
“Msg is not defined”
undefined
Answer: D
Question #:9
A developer wants to leverage a module to print a price in pretty format, and has imported a method as shown below:
Import printPrice from ‘/path/PricePrettyPrint.js’;
Based on the code, what must be true about the printPrice function of the PricePrettyPrint module for this import to work ?
printPrice must be be a named export
printPrice must be an all export
printPrice must be the default export
printPrice must be a multi exportc
Answer: C
Question #:10
Which javascript methods can be used to serialize an object into a string and deserialize a JSON string into an object, respectively?
B. C. D. A. B. C.
D.
JSON.stringify and JSON.parse
JSON.serialize and JSON.deserialize
JSON.encode and JSON.decode

JSON.parse and JSON.deserialize
Answer: A
About dumpscafe.com
dumpscafe.com was founded in 2007. We provide latest & high quality IT / Business Certification Training Exam Questions, Study Guides, Practice Tests.




We help you pass any IT / Business Certification Exams with 100% Pass Guaranteed or Full Refund. Especially Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on.


View list of all certification exams: All vendors









We prepare state-of-the art practice tests for certification exams. You can reach us at any of the email addresses listed below.
Sales: sales@dumpscafe.com
Feedback: feedback@dumpscafe.com
Support: support@dumpscafe.com
Any problems about IT certification or our products, You can write us back and we will get back to you within 24 hours.