
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































2026 Edition Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
Exam Overview This original practice exam covers modern JavaScript in the style of a JavaScript Developer I outline: variables, types and operators, functions and scope, objects, prototypes and classes, arrays and iteration, asynchronous JavaScript, browser and DOM, Node.js and tooling, testing, debugging and security, and applied scenarios. It is study material, is not affiliated with Salesforce and is not an official exam or certification. Language features and outlines change, so please confirm against current official documentation. Security items are defensive only. Exam Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and Security) - 300 Original Questions with Answers Intended for Developers preparing for JavaScript developer style exams Number of questions 300 multiple-choice (four options, one best answer) Content areas 9 Suggested time 5 hours (about 60 seconds per question) Suggested passing target 80% or higher (240 of 300) Answer format The correct answer and explanation appear directly after each question
Content area Questions Share of exam Variables, Types and Operators 33 11% Functions and Scope 33 11% Objects, Prototypes and Classes 33 11% Arrays, Collections and Iteration 33 11% Asynchronous JavaScript 33 11% Browser, DOM and Events 33 11% Node.js, Modules and Tooling 33 11% Testing, Debugging and Security 33 11% Applied Scenarios 36 12%
Cover the answer lines with a sheet of paper and attempt each question before checking. Work one content area at a time, or take all questions in one timed sitting to simulate test day. Mark every question you miss or guess on, then reread its explanation and the related reference material. Repeat the missed questions after a few days; aim to explain why each wrong option is wrong.
Dynamics 365 Business Central functional practice (confirm against current official documentation) Note: This is an independent practice resource written to the published content areas for this exam. It is not affiliated with or endorsed by the testing organization, and it does not contain actual exam questions. Laws, codes, fees and guidelines change; confirm current requirements with the official candidate handbook and references. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
Section 1: Variables, Types and Operators
1. var: A. Short circuit and B. Coerces to true C. Function scoped declaration D. Add or subtract one Correct answer: C. Function scoped declaration Explanation: Var. 2. let: A. Block scoped variable B. Returns type name C. Declared without value D. Checks NaN safely Correct answer: A. Block scoped variable Explanation: Var. 3. const: A. Expand iterables B. Block scoped constant C. Returns type name D. Features evolve Correct answer: B. Block scoped constant Explanation: Var. 4. Hoisting: A. string, number, boolean, null, undefined, symbol, bigint B. Access before let or const declaration C. false, 0, empty string, null, undefined, NaN D. Declarations move to top of scope Correct answer: D. Declarations move to top of scope Explanation: Var. 5. Temporal dead zone: A. Access before let or const declaration B. Default for null or undefined C. Add or subtract one D. Declarations move to top of scope Correct answer: A. Access before let or const declaration Explanation: Var. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
6. Primitive types: A. Access before let or const declaration B. Declarations move to top of scope C. Default for null or undefined D. string, number, boolean, null, undefined, symbol, bigint Correct answer: D. string, number, boolean, null, undefined, symbol, bigint Explanation: Var. 7. Object type: A. Returns type name B. Checks NaN safely C. Non primitive type D. Floating point issues Correct answer: C. Non primitive type Explanation: Var. 8. typeof: A. Non primitive type B. Returns type name C. Conditional expression D. Returns object Correct answer: B. Returns type name Explanation: Var. 9. typeof null: A. Delete B. Hidden C. Returns object D. Print Correct answer: C. Returns object Explanation: Var. 10. undefined: A. Backtick strings B. Block scoped constant C. Coerces to true D. Declared without value Correct answer: D. Declared without value Explanation: Var. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
16. Strict equality: A. Non primitive type B. Backtick strings C. Prefer const and let D. Compare without coercion Correct answer: D. Compare without coercion Explanation: Var. 17. Loose equality: A. Features evolve B. Add or subtract one C. Short circuit and D. Compare with coercion Correct answer: D. Compare with coercion Explanation: Var. 18. Object.is: A. Name loops B. Same value comparison C. Safer JavaScript D. Expand iterables Correct answer: B. Same value comparison Explanation: Var. 19. Type coercion: A. Automatic conversion B. Delete C. Hidden D. Print Correct answer: A. Automatic conversion Explanation: Var. 20. Template literals: A. Delete B. Hidden C. Backtick strings D. Print Correct answer: C. Backtick strings Explanation: Var. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
21. String methods: A. Unique identifier B. slice, split, includes C. Backtick strings D. Compare without coercion Correct answer: B. slice, split, includes Explanation: Var. 22. Number precision: A. Floating point issues B. Backtick strings C. Returns object D. Short circuit or Correct answer: A. Floating point issues Explanation: Var. 23. Math object: A. Delete B. Hidden C. Print D. Math functions Correct answer: D. Math functions Explanation: Var. 24. BigInt: A. Delete B. Hidden C. Large integers D. Print Correct answer: C. Large integers Explanation: Var. 25. Symbol: A. Unique identifier B. Delete C. Hidden D. Print Correct answer: A. Unique identifier Explanation: Var. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
31. Rest parameters: A. Collect arguments B. Delete C. Hidden D. Print Correct answer: A. Collect arguments Explanation: Var. 32. Destructuring: A. Delete B. Hidden C. Print D. Unpack values Correct answer: D. Unpack values Explanation: Var. 33. Ternary operator: A. Delete B. Hidden C. Print D. Conditional expression Correct answer: D. Conditional expression Explanation: Var. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
Section 2: Functions and Scope
34. Function declaration: A. Hoisted named function B. Invoke with array arguments C. Function for events D. Delay repeated calls Correct answer: A. Hoisted named function Explanation: Fun. 35. Function expression: A. Collect extra arguments B. Number of parameters C. Function assigned to a value D. Legacy argument list Correct answer: C. Function assigned to a value Explanation: Fun. 36. Arrow function: A. Cache results B. Concise function syntax C. Limit call rate D. Legacy argument list Correct answer: B. Concise function syntax Explanation: Fun. 37. this in arrow functions: A. Lexically bound B. Delete C. Hidden D. Print Correct answer: A. Lexically bound Explanation: Fun. 38. Default parameters: A. Delete B. Hidden C. Fallback values D. Print Correct answer: C. Fallback values Explanation: Fun. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
44. Higher order function: A. Function remembers outer scope B. Legacy argument list C. Limit call rate D. Takes or returns functions Correct answer: D. Takes or returns functions Explanation: Fun. 45. Callback: A. Function passed to another B. Change outside the function C. Convert to single argument functions D. Fix some arguments Correct answer: A. Function passed to another Explanation: Fun. 46. Closure: A. Number of parameters B. Function calls itself C. Function remembers outer scope D. Concise function syntax Correct answer: C. Function remembers outer scope Explanation: Fun. 47. Lexical scope: A. Result of a function B. Scope by code position C. Function calls itself D. Convert to single argument functions Correct answer: B. Scope by code position Explanation: Fun. 48. Block scope: A. Record behavior B. Cache results C. Change outside the function D. Scope inside braces Correct answer: D. Scope inside braces Explanation: Fun. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
49. Function scope: A. Function for events B. Scope inside a function C. Convert to single argument functions D. Invoke with array arguments Correct answer: B. Scope inside a function Explanation: Fun. 50. Global scope: A. Outermost scope B. Delete C. Hidden D. Print Correct answer: A. Outermost scope Explanation: Fun. 51. Scope chain: A. Delete B. Hidden C. Lookup path D. Print Correct answer: C. Lookup path Explanation: Fun. 52. IIFE: A. Delete B. Hidden C. Print D. Immediately invoked function expression Correct answer: D. Immediately invoked function expression Explanation: Fun. 53. Currying: A. Takes or returns functions B. Pause a generator C. Convert to single argument functions D. Fix some arguments Correct answer: C. Convert to single argument functions Explanation: Fun. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
59. call method: A. Hoisted named function B. Function for events C. Scope by code position D. Invoke with this Correct answer: D. Invoke with this Explanation: Fun. 60. apply method: A. Takes or returns functions B. Invoke with array arguments C. Function remembers outer scope D. Hoisted named function Correct answer: B. Invoke with array arguments Explanation: Fun. 61. bind method: A. Takes or returns functions B. Pausable function C. Watch this binding D. Create bound function Correct answer: D. Create bound function Explanation: Fun. 62. this keyword: A. Invoke with array arguments B. Features evolve C. Execution context object D. Execution order Correct answer: C. Execution context object Explanation: Fun. 63. Method: A. Legacy argument list B. Function on an object C. Pause a generator D. Too deep recursion Correct answer: B. Function on an object Explanation: Fun. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
64. Constructor function: A. Create objects with new B. Invoke with array arguments C. Execution context object D. Pause a generator Correct answer: A. Create objects with new Explanation: Fun. 65. Generator function: A. Delete B. Hidden C. Pausable function D. Print Correct answer: C. Pausable function Explanation: Fun. 66. yield: A. Fallback values B. Pause a generator C. Delay repeated calls D. Features evolve Correct answer: B. Pause a generator Explanation: Fun. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
72. Bracket notation: A. Shared object for inheritance B. Beware shared references C. Property write hook D. Access by string Correct answer: D. Access by string Explanation: Obj. 73. Object.keys: A. Delete B. List keys C. Hidden D. Print Correct answer: B. List keys Explanation: Obj. 74. Object.values: A. Delete B. Hidden C. List values D. Print Correct answer: C. List values Explanation: Obj. 75. Object.entries: A. List pairs B. Delete C. Hidden D. Print Correct answer: A. List pairs Explanation: Obj. 76. Object.assign: A. Delete B. Hidden C. Print D. Copy properties Correct answer: D. Copy properties Explanation: Obj. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and
77. Spread for objects: A. Shallow copy B. Delete C. Hidden D. Print Correct answer: A. Shallow copy Explanation: Obj. 78. Object.freeze: A. Delete B. Hidden C. Prevent changes D. Print Correct answer: C. Prevent changes Explanation: Obj. 79. Object.seal: A. Access by string B. Prevent adding or removing C. Shows in loops D. Modern own check Correct answer: B. Prevent adding or removing Explanation: Obj. 80. Object.create: A. On the class B. Weakly held keys C. Hash prefixed members D. Create with a prototype Correct answer: D. Create with a prototype Explanation: Obj. 81. Prototype: A. Check prototype chain B. Access by name C. Access by string D. Shared object for inheritance Correct answer: D. Shared object for inheritance Explanation: Obj. Salesforce JavaScript Developer I Style Practice Exam (Modern JavaScript: Types, Functions, Objects, Arrays, Async, DOM, Node.js, Testing and