At any time, you can change the study mode, and alternate between the practice mode and the exam mode. In practice mode, you can configure for example the number of questions or tests, and other parameters to help you study.
Randomized | 10 Questions per Test | 20 Minutes | 70% to pass|
To re-configure your study mode again and change - for example - the number of tests, whether you have random questions and all other configuration parameters.
?Simulator Configuration
Auto-scroll: You can use the automatic scrolling of the questionnaire that occurs as soon as you answer one or all of the answers to a question correctly. Auto scrolling is activated if you answer a single answer, or as soon as you answer all the mandatory answers. Learning Mode: During learning mode you can get a real time result for your answer.
Free Test
Question: / 10
20:00Min. left
?Restart the current test
To restart the current test by clearing all your answers and the time used up to now. Warning: all answers will be lost.
Question: / 10
4.8(904 Votes)
Quiz
Question 1/101/10
A developer is creating a simple webpage with a button. When a user clicks this button
for the first time, a message is displayed.
The developer wrote the JavaScript code below, but something is missing. The
message gets displayed every time a user clicks the button, instead of just the first time.
01 function listen(event) {
02 alert ( ‘Hey! I am John Doe’) ;
03 button.addEventListener (‘click’, listen);
Which two code lines make this code work as required?
Choose 2 answers
Select multiple answer: (Choose 2)Select the answer
2 correct answers
A.
On line 02, use event.first to test if it is the first execution.
B.
On line 04, use event.stopPropagation ( ),
C.
On line 04, use button.removeEventListener(‘ click” , listen);
D.
On line 06, add an option called once to button.addEventListener().
Option C,D are correct.
Right Answer: C, D
Quiz
Question 2/102/10
Refer to the code below:
01 const exec = (item, delay) =>{
02 new Promise(resolve => setTimeout( () => resolve(item), delay)),
03 async function runParallel() {
04 Const (result1, result2, result3) = await Promise.all{
05 [exec (‘x’, ‘100’) , exec(‘y’, 500), exec(‘z’, ‘100’)]
06 );
07 return `parallel is done: $(result1) $(result2)$(result3)`;
08 }
}
}
Which two statements correctly execute the runParallel () function?
Choose 2 answers
Select multiple answer: (Choose 2)Select the answer
A developer needs to test this function:
01 const sum3 = (arr) => (
02 if (!arr.length) return 0,
03 if (arr.length === 1) return arr[0],
04 if (arr.length === 2) return arr[0] + arr[1],
05 return arr[0] + arr[1] + arr[2],
06 );
Which two assert statements are valid tests for the function?
Choose 2 answers
Select multiple answer: (Choose 2)Select the answer
2 correct answers
A.
console.assert(sum3(1, ‘2’)) == 12);
B.
console.assert(sum3(0)) == 0);
C.
console.assert(sum3(-3, 2 )) == -1);
D.
console.assert(sum3(‘hello’, 2, 3, 4)) === NaN);
Right Answer: A, C
Quiz
Question 4/104/10
Which statement phrases successfully?
Select the answer:Select the answer
1 correct answer
A.
JSON.parse ( ‘ foo ’ );
B.
JSON.parse ( “ foo ” );
C.
JSON.parse( “ ‘ foo ’ ” );
D.
JSON.parse(‘ “ foo ” ’);
Right Answer: D
Quiz
Question 5/105/10
Refer to the code below:
01 let car1 = new promise((_, reject) =>
02 setTimeout(reject, 2000, “Car 1 crashed in”));
03 let car2 = new Promise(resolve => setTimeout(resolve, 1500, “Car 2
completed”));
04 let car3 = new Promise(resolve => setTimeout (resolve, 3000, “Car 3
Completed”));
05 Promise.race([car1, car2, car3])
06 .then(value => (
07 let result = $(value) the race. `;
08 ))
09 .catch( arr => (
10 console.log(“Race is cancelled.”, err);
11 ));
What is the value of result when Promise.race executes?
Select the answer:Select the answer
1 correct answer
A.
Car 3 completed the race.
B.
Car 1 crashed in the race.
C.
Car 2 completed the race.
D.
Race is cancelled.
Right Answer: C
Quiz
Question 6/106/10
Refer to the code below:
for(let number =2 ; number <= 5 ; number += 1 ) {
// insert code statement here
}
The developer needs to insert a code statement in the location shown. The code
statement has these requirements:
1. Does require an import
2. Logs an error when the boolean statement evaluates to false
3. Works in both the browser and Node.js
Which meet the requirements?
Select the answer:Select the answer
1 correct answer
A.
assert (number % 2 === 0);
B.
console.error(number % 2 === 0);
C.
console.debug(number % 2 === 0);
D.
console.assert(number % 2 === 0);
Right Answer: B
Quiz
Question 7/107/10
A developer is working on an ecommerce website where the delivery date is dynamically
calculated based on the current day. The code line below is responsible for this calculation.
Const deliveryDate = new Date ();
Due to changes in the business requirements, the delivery date must now be today’s
date + 9 days.
Which code meets this new requirement?
Select the answer:Select the answer
1 correct answer
A.
deliveryDate.setDate(( new Date ( )).getDate () +9);
B.
deliveryDate.setDate( Date.current () + 9);
C.
deliveryDate.date = new Date(+9) ;
D.
deliveryDate.date = Date.current () + 9;
Right Answer: A
Quiz
Question 8/108/10
Which three statements are true about promises ?
Choose 3 answers
Select multiple answer: (Choose 3)Select the answer
3 correct answers
A.
The executor of a new Promise runs automatically.
B.
A Promise has a .then() method.
C.
A fulfilled or rejected promise will not change states .
D.
A settled promise can become resolved.
E.
A pending promise can become fulfilled, settled, or rejected.
Right Answer: B, C, E
Quiz
Question 9/109/10
Given the code below:
01 function GameConsole (name) {
02 this.name = name;
03 }
04
05 GameConsole.prototype.load = function(gamename) {
06 console.log( ` $(this.name) is loading a game : $(gamename) …`);
07 )
08 function Console 16 Bit (name) {
09 GameConsole.call(this, name) ;
10 }
11 Console16bit.prototype = Object.create ( GameConsole.prototype) ;
12 //insert code here
13 console.log( ` $(this.name) is loading a cartridge game : $(gamename) …`);
14 }
15 const console16bit = new Console16bit(‘ SNEGeneziz ’);
16 console16bit.load(‘ Super Nonic 3x Force ’);
What should a developer insert at line 15 to output the following message using the
method ?
> SNEGeneziz is loading a cartridge game: Super Monic 3x Force . . .
Console16bit = Object.create(GameConsole.prototype).load = function
(gamename) {
D.
Console16bit.prototype.load(gamename) {
Right Answer: B
Quiz
Question 10/1010/10
A developer has the following array of student test grades:
Let arr = [ 7, 8, 5, 8, 9 ];
The Teacher wants to double each score and then see an array of the students
who scored more than 15 points.
How should the developer implement the request?
Select the answer:Select the answer
1 correct answer
A.
Let arr1 = arr.filter(( val) => ( return val > 15 )) .map (( num) => ( return num *2 ))
B.
Let arr1 = arr.mapBy (( num) => ( return num *2 )) .filterBy (( val ) => return val > 15 )) ;
C.
Let arr1 = arr.map((num) => num*2). Filter (( val) => val > 15);
D.
Let arr1 = arr.map((num) => ( num *2)).filterBy((val) => ( val >15 ));
Salesforce-JavaScript-Developer-I Practice test unlocks all online simulator questions
Thank you for choosing the free version of the Salesforce-JavaScript-Developer-I practice test! Further deepen your knowledge on Salesforce Simulator; by unlocking the full version of our Salesforce-JavaScript-Developer-I Simulator you will be able to take tests with over 223 constantly updated questions and easily pass your exam. 98% of people pass the exam in the first attempt after preparing with our 223 questions.
What to expect from our Salesforce-JavaScript-Developer-I practice tests and how to prepare for any exam?
The Salesforce-JavaScript-Developer-I Simulator Practice Tests are part of the Salesforce Database and are the best way to prepare for any Salesforce-JavaScript-Developer-I exam. The Salesforce-JavaScript-Developer-I practice tests consist of 223 questions and are written by experts to help you and prepare you to pass the exam on the first attempt. The Salesforce-JavaScript-Developer-I database includes questions from previous and other exams, which means you will be able to practice simulating past and future questions. Preparation with Salesforce-JavaScript-Developer-I Simulator will also give you an idea of the time it will take to complete each section of the Salesforce-JavaScript-Developer-I practice test . It is important to note that the Salesforce-JavaScript-Developer-I Simulator does not replace the classic Salesforce-JavaScript-Developer-I study guides; however, the Simulator provides valuable insights into what to expect and how much work needs to be done to prepare for the Salesforce-JavaScript-Developer-I exam.
Salesforce-JavaScript-Developer-I Practice test therefore represents an excellent tool to prepare for the actual exam together with our Salesforce practice test . Our Salesforce-JavaScript-Developer-I Simulator will help you assess your level of preparation and understand your strengths and weaknesses. Below you can read all the quizzes you will find in our Salesforce-JavaScript-Developer-I Simulator and how our unique Salesforce-JavaScript-Developer-I Database made up of real questions:
Info quiz:
Quiz name:Salesforce-JavaScript-Developer-I
Total number of questions:223
Number of questions for the test:50
Pass score:80%
You can prepare for the Salesforce-JavaScript-Developer-I exams with our mobile app. It is very easy to use and even works offline in case of network failure, with all the functions you need to study and practice with our Salesforce-JavaScript-Developer-I Simulator.
Use our Mobile App, available for both Android and iOS devices, with our Salesforce-JavaScript-Developer-I Simulator . You can use it anywhere and always remember that our mobile app is free and available on all stores.
Our Mobile App contains all Salesforce-JavaScript-Developer-I practice tests which consist of 223 questions and also provide study material to pass the final Salesforce-JavaScript-Developer-I exam with guaranteed success.
Our Salesforce-JavaScript-Developer-I database contain hundreds of questions and Salesforce Tests related to Salesforce-JavaScript-Developer-I Exam. This way you can practice anywhere you want, even offline without the internet.