Free Certification Preparation for Salesforce JavaScript Developer I Exam CRT-600 Exam Practice Test
CRT-600 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: 224
-
Refer to HTML below: The current status of an Order: <span id =''status''> In Progress </span> .Which JavaScript statement changes the text 'In Progress' to 'Completed' ?
Answer: C Next Question -
A developer creates a simple webpage with an input field. When a user enters text in the input field and clicks the button, the actual value of the field must be displayed in the console.Here is the HTML file content:<input type ='' text'' value=''Hello'' name =''input''><button type =''button'' >Display </button> The developer wrote the javascript code below:Const button = document.querySelector('button');button.addEvenListener('click', () => (Const input = document.querySelector('input');console.log(input.getAttribute('value'));When the user clicks the button, the output is always ''Hello''.What needs to be done to make this code work as expected?
Answer: A Next Question -
After user acceptance testing, the developer is asked to change the webpage background based on user's location. This change was implemented and deployed for testing.The tester reports that the background is not changing, however it works as required when viewing on the developer's computer.Which two actions will help determine accurate results?Choose 2 answers
Answer: A, D Next Question -
A developer wrote a fizzbuzz function that when passed in a number, returns thefollowing: 'Fizz' if the number is divisible by 3. 'Buzz' if the number is divisible by 5. 'Fizzbuzz' if the number is divisible by both 3 and 5. Empty string if the number is divisible by neither 3 or 5.Which two test cases will properly test scenarios for the fizzbuzz function?Choose 2 answers
Answer: B, C, D Next Question -
Which two console logs outputs NaN ?Choose 2 answers
Answer: B, C Next Question -
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 2completed''));04 let car3 = new Promise(resolve => setTimeout (resolve, 3000, ''Car 3Completed''));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?
Answer: C Next Question -
Refer to the following code that performs a basic mathematical operation on a providedinput:function calculate(num) {Return (num +10) / 3;}How should line 02 be written to ensure that x evaluates to 6 in the line below?Let x = calculate (8);
Answer: B Next Question -
Given the code below:Function myFunction(){A =5;Var b =1;}myFunction();console.log(a);console.log(b);What is the expected output?
Answer: B Next Question -
Which three statements are true about promises ?Choose 3 answers
Answer: B, C, E Next Question -
Which statement phrases successfully?
Answer: D Next Question
Total Questions: 224