Free Salesforce Certified JavaScript Developer I Exam Javascript-Developer-I Exam Practice Test
Javascript-Developer-I Exam Features
In Just $59 You can Access
- All Official Question Types
- Interactive Web-Based Practice Test Software
- No Installation or 3rd Party Software Required
- Customize your practice sessions (Free Demo)
- 24/7 Customer Support
Total Questions: 219
-
Given the code below:const delay = sync delay => {Return new Promise((resolve, reject) => {setTimeout (resolve, delay);});};const callDelay =async () =>{const yup =await delay(1000);console.log(1);What is logged to the console?
Answer: D Next Question -
developer removes the HTML class attribute from the checkout button, so now it issimply:<button>Checkout</button>.There is a test to verify the existence of the checkout button, however it looks for a button withclass= ''blue''. The test fails because no such button is found.Which type of test category describes this test?
Answer: D Next Question -
Teams at Universal Containers (UC) work on multiple JavaScript projects at the same time.UC is thinking about reusability and how each team can benefit from the work of others.Going open-source or public is not an option at this time.Which option is available to UC with npm?
Answer: A Next Question -
Which statement phrases successfully?
Answer: D Next Question -
Refer to the code below:Let car1 = new Promise((_ , reject) =>setTimeout(reject, 2000, ''car 1 crashed in'' =>Let car2 =new Promise(resolve => setTimeout(resolve, 1500, ''car 2 completed'')Let car3 =new Promise(resolve => setTimeout(resolve, 3000, ''car 3 completed'')Promise.race(( car1, car2, car3)).then (value => (Let result = '$(value) the race.';)}.catch(arr => {console.log(''Race is cancelled.'', err);});What is the value of result when Promise.race executes?
Answer: B Next Question -
Refer to the code below:Const resolveAfterMilliseconds = (ms) => Promise.resolve (setTimeout (( => console.log(ms), ms ));Const aPromise = await resolveAfterMilliseconds(500);Const bPromise = await resolveAfterMilliseconds(500);Await aPromise, wait bPromise;What is the result of running line 05?
Answer: B Next Question -
Refer to the code below:function foo () {const a =2;function bat() {console.log(a);}return bar;}Why does the function bar have access to variable a ?
Answer: C Next Question -
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?
Answer: B Next Question -
Refer to the code below:Let inArray =[ [ 1, 2 ] , [ 3, 4, 5 ] ];Which two statements result in the array [1, 2, 3, 4, 5] ?Choose 2 answers
Answer: A, B Next Question -
A developer writers the code below to calculate the factorial of a given number.Function factorial(number) {Return number + factorial(number -1);}factorial(3);What is the result of executing line 04?
Answer: D Next Question
Total Questions: 219
