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

JavaScript-Developer-I VCE Exam Download

Page: 3 / 8
Question 12

Given the code below:

What is logged to the console'

Options:

A.

1 2 3 4 5

B.

1 2 5 3 4

C.

2 5 1 3 4

D.

2 5 3 4 1

Question 13

A developer has the function, shown below, that is called when a page loads.

Where can the developer see the log statement after loading the page in the browser?

Options:

A.

On the browser JavaScript console

B.

On the terminal console running the web server

C.

In the browser performance tools log

D.

On the webpage console log

Question 14

The developer has a function that prints “Hello” to an input name. To test this, thedeveloper created a function that returns “World”. However the following snippet does not print “ Hello World”.

What can the developer do to change the code to print “Hello World” ?

Options:

A.

Change line 7 to ) () ;

B.

Change line 2 to console.log(‘Hello’ , name() );

C.

Change line 9 to sayHello(world) ();

D.

Change line 5 to function world ( ) {

Question 15

A test has a dependency on database.query. During the test the dependency is replaced

with an object called database with the method, query, that returns an array. The

developer needs to verify how many times the method was called and the arguments

used each time.

Which two test approaches describe the requirement?

Choose 2 answers

Options:

A.

Integration

B.

Black box

C.

White box

D.

Mocking

Page: 3 / 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