Winter Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bigdisc65

Helping Hand Questions for JavaScript-Developer-I

Page: 4 / 8
Question 16

developer publishes a new version of a package with new features that do not break

backward compatibility. The previous version number was 1.1.3.

Following semantic versioning format, what should the new package version number

be?

Options:

A.

2.0.0

B.

1.2.3

C.

1.1.4

D.

1.2.0

Question 17

Refer to code below:

Function muFunction(reassign){

Let x = 1;

var y = 1;

if( reassign ) {

Let x= 2;

Var y = 2;

console.log(x);

console.log(y);}

console.log(x);

console.log(y);}

What is displayed when myFunction(true) is called?

Options:

A.

2 2 1 1

B.

2 2 undefined undefined

C.

2 2 1 2

D.

2 2 2 2

Question 18

is below:

<input type=”file” onchange=”previewFile()”>

”Image

The JavaScript portion is:

01 function previewFile(){

02 const preview = document.querySelector(‘img’);

03 const file = document.querySelector(‘input[type=file]’).files[0];

04 //line 4 code

05 reader.addEventListener(“load”, () => {

06 preview.src = reader.result;

07 },false);

08 //line 8 code

09 }

In lines 04 and 08, which code allows the user to select an image from their local

computer , and to display the image in the browser?

Options:

A.

04 const reader = new File();

08 if (file) URL.createObjectURL(file);

B.

04 const reader = new FileReader();

08 if (file) URL.createObjectURL(file);

C.

04 const reader = new File();

08 if (file) reader.readAsDataURL(file);

D.

04 const reader = new FileReader();

08 if (file) reader.readAsDataURL(file);

Question 19

Refer to the following code that imports a module named utils:

import (foo, bar) from ‘/path/Utils.js’;

foo() ;

bar() ;

Which two implementations of Utils.js export foo and bar such that the code above runs without

error?

Choose 2 answers

Options:

A.

// FooUtils.js and BarUtils.js exist

Import (foo) from ‘/path/FooUtils.js’;

Import (boo) from ‘ /path/NarUtils.js’;

B.

const foo = () => { return ‘foo’ ; }

const bar = () => { return ‘bar’ ; }

export { bar, foo }

C.

Export default class {

foo() { return ‘foo’ ; }

bar() { return ‘bar’ ; }

}

D.

const foo = () => { return ‘foo’;}

const bar = () => {return ‘bar’; }

Export default foo, bar;

Page: 4 / 8
Exam Name: Salesforce Certified JavaScript Developer I (SU24)
Last Update: Nov 21, 2024
Questions: 215
JavaScript-Developer-I pdf

JavaScript-Developer-I PDF

$28  $80
JavaScript-Developer-I Engine

JavaScript-Developer-I Testing Engine

$33.25  $95
JavaScript-Developer-I PDF + Engine

JavaScript-Developer-I PDF + Testing Engine

$45.5  $130