Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Free Salesforce CRT-600 Exam Dumps

Here you can find all the free questions related with Salesforce Prepare for your JavaScript Developer I Certification Exam (CRT-600) exam. You can also find on this page links to recently updated premium files with which you can practice for actual Salesforce Prepare for your JavaScript Developer I Certification Exam . These premium versions are provided as CRT-600 exam practice tests, both as desktop software and browser based application, you can use whatever suits your style. Feel free to try the Prepare for your JavaScript Developer I Certification Exam premium files for free, Good luck with your Salesforce Prepare for your JavaScript Developer I Certification Exam .
Question No: 1

MultipleChoice

Refer to the code snippet below:

Let array = [1, 2, 3, 4, 4, 5, 4, 4];

For (let i =0; i < array.length; i++)

if (array[i] === 4) {

array.splice(i, 1);

}

}

What is the value of array after the code executes?

Options
Question No: 2

MultipleChoice

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' ?

Options
Question No: 3

MultipleChoice

Given the following code:

document.body.addEventListener(' click ', (event) => {

if (/* CODE REPLACEMENT HERE */) {

console.log('button clicked!');

)

});

Which replacement for the conditional statement on line 02 allows a developer to

correctly determine that a button on page is clicked?

Options
Question No: 4

MultipleChoice

Refer to code below:

function Person() {

this.firstName = 'John';

}

Person.prototype ={

Job: x => 'Developer'

};

const myFather = new Person();

const result =myFather.firstName + ' ' + myFather.job();

What is the value of the result after line 10 executes?

Options
Question No: 5

MultipleChoice

Refer to the code snippet below:

Let array = [1, 2, 3, 4, 4, 5, 4, 4];

For (let i =0; i < array.length; i++){

if (array[i] === 4) {

array.splice(i, 1);

}

}

What is the value of the array after the code executes?

Options
Question No: 6

MultipleChoice

Refer to following code block:

Let array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,];

Let output =0;

For (let num of array){

if (output >0){

Break;

}

if(num % 2 == 0){

Continue;

}

Output +=num;

What is the value of output after the code executes?

Options
Question No: 7

MultipleChoice

Refer to the code below:

<html lang=''en''>

<table onclick=''console.log(Table log');''>

<tr id=''row1''>

<td>Click me!</td>

</tr>

<table>

<script>

function printMessage(event) {

console.log('Row log');

}

Let elem = document.getElementById('row1');

elem.addEventListener('click', printMessage, false);

</script>

</html>

Which code change should be made for the console to log only Row log when 'Click me! ' is

clicked?

Options
Question No: 8

MultipleChoice

Refer to the code below:

let timeFunction =() => {

console.log('Timer called.'');

};

let timerId = setTimeout (timedFunction, 1000);

Which statement allows a developer to cancel the scheduled timed function?

Options
Question No: 9

MultipleChoice

Refer to the following code:

<html lang=''en''>

<body>

<button id =''myButton''>CLick me<button>

</body>

<script>

function displayMessage(ev) {

ev.stopPropagation();

console.log('Inner message.');

}

const elem = document.getElementById('myButton');

elem.addEventListener('click' , displayMessage);

</script>

</html>

What will the console show when the button is clicked?

Options
Question No: 10

MultipleChoice

Refer to the code below:

new Promise((resolve, reject) => {

const fraction = Math.random();

if( fraction >0.5) reject('fraction > 0.5, ' + fraction);

resolve(fraction);

})

.then(() =>console.log('resolved'))

.catch((error) => console.error(error))

.finally(() => console.log(' when am I called?'));

When does Promise.finally on line 08 get called?

Options

Save Cancel