Online Access Free JS-Dev-101 Practice Test
| Exam Code: | JS-Dev-101 |
| Exam Name: | Salesforce Certified JavaScript Developer - Multiple Choice |
| Certification Provider: | Salesforce |
| Free Question Number: | 149 |
| Posted: | Jun 03, 2026 |
Refer to the code below:
let inArray = [ [1, 2], [3, 4, 5] ];
Which two statements result in the array [1, 2, 3, 4, 5]?
(With corrected typing errors: usArray → inArray, .. → ....)
Considering type coercion, what does the following expression evaluate to?
true + '13' + NaN
Refer to the code below:
01 let o = {
02 get js() {
03 let city1 = String('St. Louis');
04 let city2 = String('New York');
05
06 return {
07 firstCity: city1.toLowerCase(),
08 secondCity: city2.toLowerCase(),
09 }
10 }
11 }
What value can a developer expect when referencing o.js.secondCity?
Refer to the following array:
let arr = [1, 2, 3, 4, 5];
Which two lines of code result in a second array, arr2, created such that arr2 is a reference to arr?
A developer removes the HTML class attribute from the checkout button, so now it is simply:
<button>Checkout</button>
There is a test to verify the existence of the checkout button, however it looks for a button with class="blue". The test fails because no such button is found.
Which type of test category describes this test?