We have prepared Salesforce JavaScript Developer I certification sample questions to make you aware of actual exam properties. This sample question set provides you with information about the Salesforce JavaScript Developer I exam pattern, question formate, a difficulty level of questions and time required to answer each question. To get familiar with Salesforce Certified JavaScript Developer I exam, we suggest you try our Sample Salesforce JavaScript Developer I Certification Practice Exam in simulated Salesforce certification exam environment.
To test your knowledge and understanding of concepts with real-time scenario based questions, we strongly recommend you to prepare and practice with Premium Salesforce JavaScript Developer I Certification Practice Exam. The premium certification practice exam helps you identify topics in which you are well prepared and topics in which you may need further training to achieving great score in actual Salesforce Certified JavaScript Developer I exam.
Salesforce JavaScript Developer I Sample Questions:
01. A developer has an ErrorHandler module that contains multiple functions. What kind of export be leverages so that multiple functions can be used?
a) Named
b) Multi
c) Default
d) All
02. Which two console logs output NaN?
Choose 2 answers
a) console.log(10 / Number(‘5) ) ;
b) console.log(parseInt ‘ (“two’)) ;
c) console.log(10 / 0);
d) console.loeg(10 / ‘five’);
03. In which situation should a developer include a try .. catch block around their function call?
a) The function has an error that should not be silenced.
b) The function results in an out of memory issue.
c) The function might raise a runtime error that needs to be handled.
d) The function contains scheduled code.
04. What are two unique features of functions defined with a fat arrow as compared to normal function definition?
Choose 2 answers
a) The function generated its own this making it useful for separating the function’s scope from its enclosing scope.
b) The function receives an argument that is always in scope, called parentThis, which is the enclosing lexical scope.
c) If the function has a single expression in the function body, the expression will be evaluated and implicit returned.
d) The function uses the this from the enclosing scope.
05. Considering the implications of 'use strict' on line 04, which three statements describe the execution of the code?
a) z is equal to 3.14.
b) 'use strict' is hoisted, so it has an effect on all lines.
c) Line 05 throws an error.
d) 'use strict' has an effect only on line 05.
e) 'use strict' has an effect between line 04 and the end of the file.
06. What is the result of the code block?
a) The console logs only ‘flag’.
b) The console logs ‘flag’ and another flag.
c) An error is thrown.
d) The console logs ‘flag’ and then an error is thrown.
07. Developer has a web server running with Node.js. The command to start the web server is node server,js. The web server started having latency issues. Instead of a one second turn around for web requests, the developer now sees a five second turnaround.
Which command can the web developer run to see what the module is doing during the latency period?
a) DEBUG = http, https node server.js
b) NODE_DEBUG =http, https node server.js
c) DEBUG =true node server.js
d) NODE_DEBUG =true node server.js
08. Which three browser specific APIs are available for developers to persist data between page loads?
Choose 3 answers
a) IIFEs
b) indexedDB
c) Global variables
d) Cookies
e) localStorage
09. Why would a developer specify a package.jason as a developed forge instead of a dependency?
a) It should be bundled when the package is published.
b) Other required packages depend on it for development.
c) It is required by the application in production.
d) It is only needed for local development and testing.
10. Universal Container(UC) just launched a new landing page, but users complain that the website is slow. A developer found some functions that cause this problem. To verify this, the developer decides to do everything and log the time each of these three suspicious functions consumes. console.time(‘Performance’); maybeAHeavyFunction(); thisCouldTakeTooLong(); orMaybeThisOne(); console.endTime(‘Performance’);
Which function can the developer use to obtain the time spent by every one of the three functions?
a) console.timeLog()
b) console.getTime()
c) console.trace()
d) console.timeStamp()
Answers:
Question: 01
Answer: a |
Question: 02
Answer: a, b |
Question: 03
Answer: c |
Question: 04
Answer: a, b |
Question: 05
Answer: a, c, d |
Question: 06
Answer: d |
Question: 07
Answer: c |
Question: 08
Answer: b, d, e |
Question: 09
Answer: d |
Question: 10
Answer: a |
Note: Please update us by writing an email on feedback@vmexam.com for any error in Salesforce Certified JavaScript Developer I certification exam sample questions